mirror of
				https://github.com/lacerta-doc/Lacerta.git
				synced 2025-09-09 12:09:25 +00:00 
			
		
		
		
	getList修正
This commit is contained in:
		
							parent
							
								
									d0543d89b9
								
							
						
					
					
						commit
						5f74123c63
					
				| 
						 | 
					@ -61,10 +61,8 @@ public class FileManagerImpl implements FileManager {
 | 
				
			||||||
    public List<Path> getList() {
 | 
					    public List<Path> getList() {
 | 
				
			||||||
        List<Path> list = new ArrayList<>();
 | 
					        List<Path> list = new ArrayList<>();
 | 
				
			||||||
        try (DirectoryStream<Path> stream = Files.newDirectoryStream(currentDir)) {
 | 
					        try (DirectoryStream<Path> stream = Files.newDirectoryStream(currentDir)) {
 | 
				
			||||||
            for (Path entry : stream) {
 | 
					            for (Path entry : stream) { // TODO-rca: エラーハンドリング, 効率化
 | 
				
			||||||
                if (Files.isDirectory(entry)) {
 | 
					                list.add(entry);
 | 
				
			||||||
                    list.add(entry);
 | 
					 | 
				
			||||||
                }
 | 
					 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } catch (IOException e) {
 | 
					        } catch (IOException e) {
 | 
				
			||||||
            e.printStackTrace();
 | 
					            e.printStackTrace();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user