Rename File.getName and Directory.getName to .getBaseName

This commit is contained in:
Corey Johnson
2012-08-02 11:37:49 -07:00
parent 114847fb0f
commit 81f83482b0
5 changed files with 8 additions and 5 deletions

View File

@@ -72,6 +72,9 @@ class Buffer
@modified = false
@modifiedOnDisk = false
getBaseName: ->
@file?.getBaseName()
getPath: ->
@file?.getPath()

View File

@@ -9,7 +9,7 @@ class Directory
constructor: (@path) ->
getName: ->
getBaseName: ->
fs.base(@path) + '/'
getEntries: ->

View File

@@ -17,7 +17,7 @@ class File
getPath: ->
@path
getName: ->
getBaseName: ->
fs.base(@path)
updateMd5: ->