mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Interpolate pathToCreate instead of path
This regressed as part of the migration to using helpers from path instead of fs-utils. Close #608
This commit is contained in:
@@ -278,7 +278,7 @@ class TreeView extends ScrollView
|
||||
try
|
||||
if fsUtils.exists(pathToCreate)
|
||||
pathType = if fsUtils.isFileSync(pathToCreate) then "file" else "directory"
|
||||
dialog.showError("Error: A #{pathType} already exists at path '#{path}'. Try a different path.")
|
||||
dialog.showError("Error: A #{pathType} already exists at path '#{pathToCreate}'. Try a different path.")
|
||||
else if endsWithDirectorySeparator
|
||||
fsUtils.makeTree(pathToCreate)
|
||||
dialog.cancel()
|
||||
|
||||
Reference in New Issue
Block a user