public DeleteDirectory ( string path, bool force ) : void | ||
path | string | |
force | bool | |
return | void |
public void DeleteDirectory(string path,
bool force)
{
if (!Directory.Exists(path))
return;
if (force)
RecursiveMakeNormal(path);
Directory.Delete(path, force);
}