本文整理了Java中jodd.io.FileUtil.cleanDir()
方法的一些代码示例,展示了FileUtil.cleanDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtil.cleanDir()
方法的具体详情如下:
包路径:jodd.io.FileUtil
类名称:FileUtil
方法名:cleanDir
[英]Cleans a directory without deleting it.
[中]清除目录而不删除它。
代码示例来源:origin: redisson/redisson
public static void cleanDir(File dest) throws IOException {
cleanDir(dest, fileUtilParams);
}
代码示例来源:origin: redisson/redisson
/**
* Deletes a directory.
*/
public static void deleteDir(File dest, FileUtilParams params) throws IOException {
cleanDir(dest, params);
if (!dest.delete()) {
throw new IOException(MSG_UNABLE_TO_DELETE + dest);
}
}
代码示例来源:origin: redisson/redisson
public static void cleanDir(String dest) throws IOException {
cleanDir(file(dest), fileUtilParams);
}
public static void cleanDir(String dest, FileUtilParams params) throws IOException {
代码示例来源:origin: redisson/redisson
public static void cleanDir(String dest, FileUtilParams params) throws IOException {
cleanDir(file(dest), params);
}
public static void cleanDir(File dest) throws IOException {
代码示例来源: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: oblac/jodd
/**
* @see #cleanDir(File)
*/
public static void cleanDir(final String dest) throws IOException {
cleanDir(file(dest));
}
代码示例来源: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
/**
* @see #cleanDir(File)
*/
public static void cleanDir(final String dest) throws IOException {
cleanDir(file(dest));
}
内容来源于网络,如有侵权,请联系作者删除!