mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Rename File.getName and Directory.getName to .getBaseName
This commit is contained in:
@@ -72,6 +72,9 @@ class Buffer
|
||||
@modified = false
|
||||
@modifiedOnDisk = false
|
||||
|
||||
getBaseName: ->
|
||||
@file?.getBaseName()
|
||||
|
||||
getPath: ->
|
||||
@file?.getPath()
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class Directory
|
||||
|
||||
constructor: (@path) ->
|
||||
|
||||
getName: ->
|
||||
getBaseName: ->
|
||||
fs.base(@path) + '/'
|
||||
|
||||
getEntries: ->
|
||||
|
||||
@@ -17,7 +17,7 @@ class File
|
||||
getPath: ->
|
||||
@path
|
||||
|
||||
getName: ->
|
||||
getBaseName: ->
|
||||
fs.base(@path)
|
||||
|
||||
updateMd5: ->
|
||||
|
||||
Reference in New Issue
Block a user