getList修正

This commit is contained in:
r-ca authored and r-ca committed 2023-12-24 15:07:11 +09:00
1 parent 2f21ecd6bd
commit e925893ad2
1 file changed
+2 -4
@@ -61,10 +61,8 @@ public class FileManagerImpl implements FileManager {
public List<Path> getList() {
List<Path> list = new ArrayList<>();
try (DirectoryStream<Path> stream = Files.newDirectoryStream(currentDir)) {
for (Path entry : stream) {
if (Files.isDirectory(entry)) {
list.add(entry);
}
for (Path entry : stream) { // TODO-rca: エラーハンドリング, 効率化
list.add(entry);
}
} catch (IOException e) {
e.printStackTrace();