mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 00:38:52 -05:00
* experiment with data structures for keeping/checking file trees in memory
This commit is contained in:
parent
1ea92011a3
commit
0a7a3c36bf
@ -44,6 +44,10 @@ public class FileSet extends AbstractSet<Path> {
|
||||
return add(getPath(e));
|
||||
}
|
||||
|
||||
public void feed(Stream<? extends Object> stream) {
|
||||
stream.forEach(path -> add(path.toString()));
|
||||
}
|
||||
|
||||
private boolean contains(Path e, int depth) {
|
||||
// add new leaf element
|
||||
if (e.getNameCount() - depth == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user