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
return;
        }
        InputStream contentStream = provider.getContents(fileObject);
        if (contentStream == null) {
            errorTable
                    .add(new Status(
                            IStatus.ERROR,
                            PlatformUI.PLUGIN_ID,
                            0,
                            DataTransferMessages
                                    .format(
                                            "ImportOperation.openStreamError", new Object[] { fileObjectPath }), 
                            null));
            return;
        }
        try {
            if (targetResource.exists())
                targetResource.setContents(contentStream,
                        IResource.KEEP_HISTORY, null);
            else
                targetResource.create(contentStream, false, null);
        } catch (CoreException e) {
            errorTable.add(e.getStatus());
        } finally {
            try {
                contentStream.close();
            } catch (IOException e) {
                errorTable
                        .add(new Status(
                                IStatus.ERROR,