Update directory

This commit is contained in:
Garen Torikian
2013-04-30 13:25:14 -07:00
parent 26564ee020
commit 16cef29925

View File

@@ -12,24 +12,26 @@ module.exports =
class Directory
path: null
# Public: Creates a new directory.
### Public ###
# Creates a new directory.
#
# path - A {String} representing the file directory
# symlink - A {Boolean} indicating if the path is a symlink (default: false)
constructor: (@path, @symlink=false) ->
# Public: Retrieves the basename of the directory.
# Retrieves the basename of the directory.
#
# Returns a {String}.
getBaseName: ->
fsUtils.base(@path)
# Public: Retrieves the directory's path.
# Retrieves the directory's path.
#
# Returns a {String}.
getPath: -> @path
# Public: Retrieves the file entries in the directory.
# Retrieves the file entries in the directory.
#
# This does follow symlinks.
#