Skip to content

Commit

Permalink
Revert "revert format changes from auto save"
Browse files Browse the repository at this point in the history
This reverts commit 739ae78.
  • Loading branch information
Michael5601 committed May 21, 2024
1 parent 37e4afc commit 77ea6aa
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*******************************************************************************/
package org.eclipse.core.internal.localstore;

import org.eclipse.core.filesystem.ZipFileUtil;
import org.eclipse.core.internal.resources.Container;
import org.eclipse.core.internal.resources.File;
import org.eclipse.core.internal.resources.Folder;
Expand Down Expand Up @@ -295,12 +294,7 @@ public boolean visit(UnifiedTreeNode node) throws CoreException {
return true;
}
} else {
// if opened zip files contain directories with content, the local name of the
// node contains "/" characters which are needed to properly present the
// contents in the workspace. So this check should not be done when handling zip
// files.
if (node.existsInFileSystem() && !IPath.EMPTY.isValidSegment(node.getLocalName())
&& !ZipFileUtil.isInsideOpenZipFile(target.getStore())) {
if (node.existsInFileSystem() && !IPath.EMPTY.isValidSegment(node.getLocalName())) {
String message = NLS.bind(Messages.resources_invalidResourceName, node.getLocalName());
errors.merge(new ResourceStatus(IResourceStatus.INVALID_RESOURCE_NAME, message));
return false;
Expand Down

0 comments on commit 77ea6aa

Please sign in to comment.