jodd.io.FileUtil.checkDeleteSuccessful()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中jodd.io.FileUtil.checkDeleteSuccessful()方法的一些代码示例,展示了FileUtil.checkDeleteSuccessful()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.checkDeleteSuccessful()方法的具体详情如下:
包路径:jodd.io.FileUtil
类名称:FileUtil
方法名:checkDeleteSuccessful

FileUtil.checkDeleteSuccessful介绍

[英]Checks if directory can be deleted. Throws IOException if it cannot. This actually deletes directory (as per File#delete()).
[中]检查是否可以删除目录。如果不能,则抛出IOException。这实际上会删除目录(根据文件#delete())。

代码示例

代码示例来源:origin: oblac/jodd

/**
 * Deletes a {@link File}.
 *
 * @param destFile Destination to delete.
 * @throws IOException if there was an error deleting.
 */
public static void deleteFile(final File destFile) throws IOException {
  checkIsFile(destFile);
  checkDeleteSuccessful(destFile);
}

代码示例来源:origin: oblac/jodd

/**
 * Deletes a directory.
 *
 * @param destDir Destination to delete.
 * @throws IOException if there was an error deleting.
 */
public static void deleteDir(final File destDir) throws IOException {
  cleanDir(destDir);
  checkDeleteSuccessful(destDir);
}

代码示例来源:origin: org.jodd/jodd-core

/**
 * Deletes a directory.
 *
 * @param destDir Destination to delete.
 * @throws IOException if there was an error deleting.
 */
public static void deleteDir(final File destDir) throws IOException {
  cleanDir(destDir);
  checkDeleteSuccessful(destDir);
}

代码示例来源:origin: org.jodd/jodd-core

/**
 * Deletes a {@link File}.
 *
 * @param destFile Destination to delete.
 * @throws IOException if there was an error deleting.
 */
public static void deleteFile(final File destFile) throws IOException {
  checkIsFile(destFile);
  checkDeleteSuccessful(destFile);
}

相关文章