     else
       directoryPath = initialPath
     relativeDirectoryPath = atom.project.relativize(directoryPath)
-    relativeDirectoryPath += '/' if relativeDirectoryPath.length > 0
+
+    dirSeparator = if process.platform is 'win32' then '\\' else '/'
+    relativeDirectoryPath += dirSeparator if relativeDirectoryPath.length > 0
 
     super
       prompt: "Enter the path for the new " + if isCreatingFile then "file." else "folder."


  onConfirm: (relativePath) ->
    relativePath = relativePath.replace(/\s+$/, '') # Remove trailing whitespace
    endsWithDirectorySeparator = /\/$/.test(relativePath)
    pathToCreate = atom.project.resolve(relativePath)
    return unless pathToCreate


        @showError("'#{pathToCreate}' already exists.")
      else if @isCreatingFile
        if endsWithDirectorySeparator
          @showError("File names must not end with a '#{dirSeparator}' character.")
        else
          fs.writeFileSync(pathToCreate, '')
          atom.project.getRepo()?.getPathStatus(pathToCreate)
