Commit 2a73609a authored by Quxl's avatar Quxl

x

parent c78ae691
......@@ -171,20 +171,6 @@ public class FtpUtil {
ftpClient.storeFile(remoteFullPath, is);
}
public OutputStream getFileUploadStream(String remoteFullPath) throws IOException {
String[] names = remoteFullPath.substring(1).split("/");
String p_name = "";
for (int i = 0; i < names.length - 1; i++) {
p_name = p_name + "/" + names[i];
try {
ftpClient.makeDirectory(p_name);
} catch (Exception e) {
System.out.println(e);
}
}
return ftpClient.storeFileStream(remoteFullPath);
}
public void uploadFolder(String localFileName, String remoteFullPath) throws IOException {
File localFile = new File(localFileName);
if(localFile.isFile()) {
......
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