|
@@ -307,6 +307,9 @@ public class HttpFileService extends AbstractFYunFileService {
|
|
|
if (!sourcePath.startsWith(File.separator)) {
|
|
|
sourcePath = File.separator.concat(sourcePath);
|
|
|
}
|
|
|
+ if (sourcePath.endsWith(File.separator)) {
|
|
|
+ sourcePath = sourcePath.substring(0, sourcePath.length() - 1);
|
|
|
+ }
|
|
|
|
|
|
params.put("dirName", sourcePath);
|
|
|
String url = fYunFileConfig.getEndPoint() + httpFyunConfig.getListDir();
|