本文整理了Java中jodd.io.FileUtil.checkDeleteSuccessful()
方法的一些代码示例,展示了FileUtil.checkDeleteSuccessful()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.checkDeleteSuccessful()
方法的具体详情如下:
包路径:jodd.io.FileUtil
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!