|
|
|
@ -12,7 +12,6 @@ import com.foreverwin.modular.core.util.CommonMethods;
|
|
|
|
|
import org.apache.commons.net.ftp.FTPClient;
|
|
|
|
|
import org.apache.commons.net.ftp.FTPFile;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
@ -21,8 +20,6 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
public class FileServiceImpl implements FileService {
|
|
|
|
|
@Value("${cappftp.server}")
|
|
|
|
|
private String address;
|
|
|
|
|
@Autowired
|
|
|
|
|
private SfcService sfcService;
|
|
|
|
|
@Autowired
|
|
|
|
@ -47,7 +44,7 @@ public class FileServiceImpl implements FileService {
|
|
|
|
|
for (int i = 0; i < files.length; i++) {
|
|
|
|
|
if(files[i].isFile()){
|
|
|
|
|
String filename=files[i].getName();
|
|
|
|
|
pathMap.put(filename,address+path+filename);
|
|
|
|
|
pathMap.put(filename,path+filename);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|