mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Add Sync suffix to Directory::getEntries
This commit is contained in:
@@ -68,7 +68,7 @@ describe "Directory", ->
|
||||
|
||||
describe "on #darwin or #linux", ->
|
||||
it "includes symlink information about entries", ->
|
||||
entries = directory.getEntries()
|
||||
entries = directory.getEntriesSync()
|
||||
for entry in entries
|
||||
name = entry.getBaseName()
|
||||
if name is 'symlink-to-dir' or name is 'symlink-to-file'
|
||||
|
||||
@@ -79,12 +79,12 @@ class Directory
|
||||
else
|
||||
fullPath
|
||||
|
||||
# Public: Reads file entries in this directory from disk.
|
||||
# Public: Reads file entries in this directory from disk synchronously.
|
||||
#
|
||||
# Note: It follows symlinks.
|
||||
#
|
||||
# Returns an Array of {Files}.
|
||||
getEntries: ->
|
||||
# Returns an Array of {File} and {Directory} objects.
|
||||
getEntriesSync: ->
|
||||
directories = []
|
||||
files = []
|
||||
for entryPath in fs.listSync(@path)
|
||||
|
||||
Reference in New Issue
Block a user