Skip to content

Commit

Permalink
Rename path variable to entryPath
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jun 12, 2013
1 parent 3d53a6e commit 341a327
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/directory.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ class Directory
getEntries: ->
directories = []
files = []
for path in fsUtils.list(@path)
for entryPath in fsUtils.list(@path)
try
stat = fs.lstatSync(path)
stat = fs.lstatSync(entryPath)
symlink = stat.isSymbolicLink()
stat = fs.statSync(path) if symlink
stat = fs.statSync(entryPath) if symlink
catch e
continue
if stat.isDirectory()
directories.push(new Directory(path, symlink))
directories.push(new Directory(entryPath, symlink))
else if stat.isFile()
files.push(new File(path, symlink))
files.push(new File(entryPath, symlink))

directories.concat(files)

Expand Down

0 comments on commit 341a327

Please sign in to comment.