コード例 #1
0
 public static void Delete(this IFileSystemOperator fileSystemOperator, string path)
 {
     fileSystemOperator.FileOrDirectorySwitch(path,
                                              () => fileSystemOperator.DeleteFile(path),
                                              () => fileSystemOperator.DeleteDirectory(path));
 }
コード例 #2
0
 public static void DeleteFileOnlyIfExists(this IFileSystemOperator fileSystemOperator, string filePath)
 {
     fileSystemOperator.DeleteFile(filePath);
 }