mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
File.expand './dir'
This commit is contained in:
@@ -118,6 +118,9 @@ File =
|
||||
expand: (path) ->
|
||||
if /~/.test path
|
||||
OSX.NSString.stringWithString(path).stringByExpandingTildeInPath
|
||||
else if path.indexOf('./') is 0
|
||||
root = OSX.NSBundle.mainBundle.resourcePath
|
||||
"#{root}/#{path}"
|
||||
else
|
||||
path
|
||||
isFile: (path) ->
|
||||
|
||||
Reference in New Issue
Block a user