Пример #1
0
 public static bool Remove(string path, bool force)
 {
     if (force)
     {
         PathInternal.RemoveReadOnlyFlag(path);
     }
     return(PathInternal.DllImport.RemoveDirectoryW(PathInternal.ConvertToUnicodePath(path)));
 }
Пример #2
0
 public static bool Delete(string filename, bool force)
 {
     if (force)
     {
         PathInternal.RemoveReadOnlyFlag(filename);
     }
     return(PathInternal.DllImport.DeleteFileW(PathInternal.ConvertToUnicodePath(filename)));
 }