public FileTree zipTree(Object zipPath) {
return new FileTreeAdapter(new ZipFileTree(file(zipPath), getExpandDir(), fileSystem));
}
public FileTree tarTree(Object tarPath) {
ReadableResource res = getResources().maybeCompressed(tarPath);
TarFileTree tarTree = new TarFileTree(res, getExpandDir(), fileSystem);
return new FileTreeAdapter(tarTree);
}