ftp.exist空值检查

This commit is contained in:
yebukong
2022-09-02 17:40:45 +08:00
parent f279b4a9ac
commit e0559ec96c
2 changed files with 8 additions and 2 deletions

View File

@@ -97,6 +97,9 @@ public abstract class AbstractFtp implements Closeable {
* @return 是否存在
*/
public boolean exist(String path) {
if (StrUtil.isBlank(path)) {
return false;
}
// 目录验证
if (isDir(path)) {
return true;