Bug 81603 [Import/Export] tar import/export does not preserve file permissions
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarFileStructureProvider.java
root.setFileType(TarEntry.DIRECTORY);
    }
    /**
     * Adds the specified child to the internal collection of the parent's children.
     */
    protected void addToChildren(TarEntry parent, TarEntry child) {
        List childList = (List) children.get(parent);
        if (childList == null) {
            childList = new ArrayList();
            children.put(parent, childList);
        }
        childList.add(child);
    }
    /**
     * Creates a new container tar entry with the specified name, iff
     * it has not already been created.
     */
    protected void createContainer(IPath pathname) {
        if (directoryEntryCache.containsKey(pathname))
            return;
        TarEntry parent;
        if (pathname.segmentCount() == 1)
            parent = root;
        else
            parent = (TarEntry) directoryEntryCache.get(pathname
                    .removeLastSegments(1));
        TarEntry newEntry = new TarEntry(pathname.toString());
        newEntry.setFileType(TarEntry.DIRECTORY);
        directoryEntryCache.put(pathname, newEntry);
        addToChildren(parent, newEntry);