mirror of
https://gitee.com/dromara/hutool.git
synced 2025-11-24 08:33:22 +08:00
fix:修复递归删除目录时使用相对路径可能导致死循环的问题
This commit is contained in:
@@ -462,9 +462,9 @@ public class Sftp extends AbstractFtp {
|
||||
fileName = entry.getFilename();
|
||||
if (false == ".".equals(fileName) && false == "..".equals(fileName)) {
|
||||
if (entry.getAttrs().isDir()) {
|
||||
delDir(fileName);
|
||||
delDir(dirPath + "/" + fileName);
|
||||
} else {
|
||||
delFile(fileName);
|
||||
delFile(dirPath + "/" + fileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user