Пример #1
0
 private static void DeleteFileIfPresent(FileSystemAbstraction fs, File storeFile)
 {
     try
     {
         fs.DeleteFileOrThrow(storeFile);
     }
     catch (NoSuchFileException)
     {
         // File does not exist, we don't need to delete
     }
     catch (IOException e)
     {
         throw new UncheckedIOException(e);
     }
 }