move fs.normalize call to getFullPath
This commit is contained in:
parent
2702ba4d79
commit
394dd1dffa
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ saveAs = (filePath) ->
|
|||
fs.writeFileSync(filePath, editor.getText())
|
||||
|
||||
getFullPath = (filePath) ->
|
||||
filePath = fs.normalize filePath
|
||||
return filePath if path.isAbsolute(filePath)
|
||||
return path.join(atom.project.getPath(), filePath)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue