19 package org.sleuthkit.autopsy.ingest;
21 import java.util.ArrayList;
22 import java.util.Collection;
36 final class GetRootDirectoryVisitor
extends GetFilesContentVisitor {
39 public Collection<AbstractFile> visit(VirtualDirectory ld) {
42 Collection<AbstractFile> ret =
new ArrayList<>();
48 public Collection<AbstractFile> visit(LayoutFile lf) {
50 Collection<AbstractFile> ret =
new ArrayList<>();
56 public Collection<AbstractFile> visit(Directory drctr) {
58 Collection<AbstractFile> ret =
new ArrayList<>();
64 public Collection<AbstractFile> visit(FileSystem fs) {
65 return getAllFromChildren(fs);
69 public Collection<AbstractFile> visit(File file) {
71 return getAllFromChildren(file);
75 public Collection<AbstractFile> visit(DerivedFile derivedFile) {
78 return getAllFromChildren(derivedFile);
82 public Collection<AbstractFile> visit(LocalFile localFile) {
85 return getAllFromChildren(localFile);