Esempio n. 1
0
 public static bool Remove(string path, bool force)
 {
     if (force)
     {
         PathInternal.RemoveReadOnlyFlag(path);
     }
     return(PathInternal.DllImport.RemoveDirectoryW(PathInternal.ConvertToUnicodePath(path)));
 }
Esempio n. 2
0
 public static bool Delete(string filename, bool force)
 {
     if (force)
     {
         PathInternal.RemoveReadOnlyFlag(filename);
     }
     return(PathInternal.DllImport.DeleteFileW(PathInternal.ConvertToUnicodePath(filename)));
 }