Browse Source

REPORT-112857 fix: 改下isDir的写法

release/11.0
Afly 1 year ago
parent
commit
f0809bb516
  1. 7
      src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java

7
src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java

@ -412,7 +412,12 @@ public class S3ResourceRepository extends BaseResourceRepository {
@Override
public boolean isDirectory(String path) {
return dirExist(path);
if (!path.endsWith(DELIMITER) && fileExist(path)) {
//是文件
return false;
} else {
return dirExist(path) || isParentPathAbsent(path);
}
}
@Override

Loading…
Cancel
Save