From 5f74123c63f836ed8b3e69c50ce7457d914461c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 21 Dec 2023 15:06:56 +0900 Subject: [PATCH] =?UTF-8?q?getList=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index 758737b1..76a55e9a 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -61,10 +61,8 @@ public class FileManagerImpl implements FileManager { public List getList() { List list = new ArrayList<>(); try (DirectoryStream 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();