Commit 28282260 authored by eddie.woo's avatar eddie.woo

fix path

parent 60415f28
......@@ -16,6 +16,7 @@ public class FTPClientPool {
private GenericObjectPoolConfig config;
private GenericObjectPool<FTPClient> pool;
private String ftpRootPath;
private static final String SYMBOL = "/";
@Value("${ftp.host}")
private String ftpHost;
......@@ -56,6 +57,9 @@ public class FTPClientPool {
} else {
upPath = filePath;
}
if (!StringUtils.endsWith(upPath, SYMBOL)) {
upPath = upPath + SYMBOL;
}
FTPClient client = getClient();
if (!isExist(upPath, client)) {
mkDir(upPath, client);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment