public void DeleteFile(string path) { if (_sharpCifsFileSystem.IsEnabledForPath(path)) { _sharpCifsFileSystem.DeleteFile(path); return; } SetAttributes(path, false, false); File.Delete(path); }
public void DeleteFile(string path) { if (_sharpCifsFileSystem.IsEnabledForPath(path)) { _sharpCifsFileSystem.DeleteFile(path); return; } var fileInfo = GetFileInfo(path); if (fileInfo.Exists) { if (fileInfo.IsHidden) { SetHidden(path, false); } if (fileInfo.IsReadOnly) { SetReadOnly(path, false); } } File.Delete(path); }