|
@@ -106,10 +106,10 @@ public class LaserService implements ILaserService {
|
|
|
}
|
|
|
}else{
|
|
|
String srcPath=datum.getKey();
|
|
|
- if("/".equals(datum.getKey().substring(0,1))){
|
|
|
- srcPath = srcPath.substring(1);
|
|
|
+ if (!srcPath.startsWith("/")){
|
|
|
+ srcPath="/"+srcPath;
|
|
|
}
|
|
|
- fYunFileService.downloadFileByCommand(bucket,srcPath,sourceLocal+datum.getPath());
|
|
|
+ fYunFileService.downloadFileByCommand(bucket,sourceLocal+datum.getPath(),srcPath);
|
|
|
}
|
|
|
break;
|
|
|
case 3:
|
|
@@ -136,10 +136,10 @@ public class LaserService implements ILaserService {
|
|
|
}
|
|
|
}else{
|
|
|
String srcPath=datum.getKey();
|
|
|
- if("/".equals(datum.getKey().substring(0,1))){
|
|
|
- srcPath = srcPath.substring(1);
|
|
|
+ if (!srcPath.startsWith("/")){
|
|
|
+ srcPath="/"+srcPath;
|
|
|
}
|
|
|
- fYunFileService.downloadFileByCommand(bucket,srcPath,sourceLocal+datum.getPath());
|
|
|
+ fYunFileService.downloadFileByCommand(bucket,sourceLocal+datum.getPath(),srcPath);
|
|
|
File[] deptLs = FileUtil.ls(sourceLocal+datum.getPath());
|
|
|
for (File dept : deptLs) {
|
|
|
if (FileUtil.extName(dept).equalsIgnoreCase("ply")){
|