Add dir loading for coherent feature

This commit is contained in:
2023-03-01 19:13:07 +01:00
parent b07f6894aa
commit 440251c7c9
9 changed files with 66 additions and 12 deletions

View File

@@ -10,4 +10,13 @@ public interface FileCollector {
* @return list of all files within the directory
*/
List<File> loadFiles(String path);
/**
* Load all directories from path, but only until depth is reached.
*
* @param path leads to a directory which will be loaded recursively until depth
* @param depth limit directory crawling
* @return list of directory until depth
*/
List<File> loadDirectories(String path, int depth);
}