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