@ -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);
}