public static void Delete(this IFileSystemOperator fileSystemOperator, string path) { fileSystemOperator.FileOrDirectorySwitch(path, () => fileSystemOperator.DeleteFile(path), () => fileSystemOperator.DeleteDirectory(path)); }
public static void DeleteFileOnlyIfExists(this IFileSystemOperator fileSystemOperator, string filePath) { fileSystemOperator.DeleteFile(filePath); }