dir = new DirectoryImpl(fs, fs);
} else if (fs.isFile() && isValidZip(fs)) {
try {
dir = new ZipDirectory(fs, parent);
} catch (IOException e) {
throw new IORuntimeException("IOException in IDirectory.getFSRoot", e);
}
}
}
else {
throw new IORuntimeException("File not found in IDirectory.getFSRoot", new FileNotFoundException(fs.getPath()));
}
return dir;
}