diff --git a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/File.java b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/File.java index 32b159fe05d..e0c5d4dff96 100644 --- a/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/File.java +++ b/resources/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/File.java @@ -70,8 +70,8 @@ public void appendContents(InputStream content, int updateFlags, IProgressMonito try { workspace.prepareOperation(rule, newChild); ResourceInfo info = getResourceInfo(false, false); - checkAccessible(getFlags(info)); workspace.beginOperation(true); + checkAccessible(getFlags(info)); IFileInfo fileInfo = getStore().fetchInfo(); internalSetContents(content, fileInfo, updateFlags, true, subMonitor.newChild(99)); } catch (OperationCanceledException e) { @@ -354,8 +354,8 @@ public void setContents(InputStream content, int updateFlags, IProgressMonitor m try { workspace.prepareOperation(rule, newChild); ResourceInfo info = getResourceInfo(false, false); - checkAccessible(getFlags(info)); workspace.beginOperation(true); + checkAccessible(getFlags(info)); IFileInfo fileInfo = getStore().fetchInfo(); internalSetContents(content, fileInfo, updateFlags, false, subMonitor.newChild(99)); } catch (OperationCanceledException e) {