private void DeleteMetaFile(FileSystemPath path) { try { if (path.ExistsFile) { DoUnderTransaction("Unity::DeleteMetaFile", () => { #if DEBUG path.MoveFile(FileSystemPath.Parse(path + ".deleted"), true); #else path.DeleteFile(); #endif }); myLogger.Info("*** resharper-unity: Meta removed {0}", path); } } catch (Exception e) { myLogger.LogException(LoggingLevel.ERROR, e, ExceptionOrigin.Assertion, $"Failed to delete Unity meta file {path}"); } }
public void DeleteFile(FileSystemPath filePath) { filePath.DeleteFile(); Logger.Debug("The file {0} was deleted", filePath); }