File.expand './dir'

This commit is contained in:
Chris Wanstrath
2011-08-27 14:14:59 -07:00
parent 80c643b136
commit 64516b7242

View File

@@ -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) ->