This commit is contained in:
Looly
2022-06-18 20:50:01 +08:00
parent 103738d9ef
commit 08b6716ca7
13 changed files with 438 additions and 378 deletions

View File

@@ -312,7 +312,7 @@ public class Sftp extends AbstractFtp {
if (CollUtil.isEmpty(entries)) {
return ListUtil.empty();
}
return CollUtil.map(entries, LsEntry::getFilename, true);
return CollUtil.map(entries, LsEntry::getFilename);
}
/**

View File

@@ -157,7 +157,7 @@ public class SshjSftp extends AbstractFtp {
throw new FtpException(e);
}
if (CollUtil.isNotEmpty(infoList)) {
return CollUtil.map(infoList, RemoteResourceInfo::getName, true);
return CollUtil.map(infoList, RemoteResourceInfo::getName);
}
return null;
}