Index: extensions/modeshape-connector-filesystem/src/main/java/org/modeshape/connector/filesystem/FileSystemWorkspace.java =================================================================== --- extensions/modeshape-connector-filesystem/src/main/java/org/modeshape/connector/filesystem/FileSystemWorkspace.java (revision 1826) +++ extensions/modeshape-connector-filesystem/src/main/java/org/modeshape/connector/filesystem/FileSystemWorkspace.java (working copy) @@ -158,7 +158,7 @@ class FileSystemWorkspace extends PathWorkspace { ensureValidPathLength(newFile); // Don't try to write if the node conflict behavior is DO_NOT_REPLACE - if (!newFile.createNewFile()) { + if (!newFile.exists() && !newFile.createNewFile()) { I18n msg = FileSystemI18n.fileAlreadyExists; throw new RepositorySourceException(source.getName(), msg.text(parentPath, getName(), source.getName())); }