Bug 81603 [Import/Export] tar import/export does not preserve file permissions
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/wizards/datatransfer/ImportOperation.java
*/
    void importRecursivelyFrom(Object fileSystemObject, int policy) {
        if (monitor.isCanceled())
            throw new OperationCanceledException();
        if (!provider.isFolder(fileSystemObject)) {
            importFile(fileSystemObject, policy);
            return;
        }
        int childPolicy = importFolder(fileSystemObject, policy);
        if (childPolicy != POLICY_SKIP_CHILDREN) {
            Iterator children = provider.getChildren(fileSystemObject)
                    .iterator();
            while (children.hasNext())
                importRecursivelyFrom(children.next(), childPolicy);
        }
    }
    /**
     * Queries the user whether the resource with the specified path should be
     * overwritten by a file system object that is being imported.
     * 
     * @param resourcePath the workspace path of the resource that needs to be overwritten
     * @return <code>true</code> to overwrite, <code>false</code> to not overwrite
     * @exception OperationCanceledException if canceled
     */
    boolean queryOverwrite(IPath resourcePath)
            throws OperationCanceledException {
        String overwriteAnswer = overwriteCallback.queryOverwrite(resourcePath
                .makeRelative().toString());
        if (overwriteAnswer.equals(IOverwriteQuery.CANCEL))
            throw new OperationCanceledException(DataTransferMessages