This commit is contained in:
Looly
2020-09-22 17:57:16 +08:00
parent 46fafeeb86
commit 36f7909702
11 changed files with 159 additions and 17 deletions

View File

@@ -342,6 +342,20 @@ public class Ftp extends AbstractFtp {
}
}
/**
* 获取服务端目录状态。
* @param path 路径
* @return 状态int服务端不同返回不同
* @since 5.4.3
*/
public int stat(String path) {
try {
return this.client.stat(path);
} catch (IOException e) {
throw new FtpException(e);
}
}
/**
* 判断ftp服务器文件是否存在
*