danhedron/cinequeue

App crashes if there is a symlink in the file system

Closed this issue · 2 comments

fs.js:689
  return binding.stat(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory '/home/share/media/sfx/humblebundle/cavestoryplus/CaveStoryPlusSoundTrack'
    at Object.fs.statSync (fs.js:689:18)
    at /home/zuzak/git/cinequeue/routes/filesystem.js:32:23
    at Array.map (native)
    at /home/zuzak/git/cinequeue/routes/filesystem.js:30:19
    at Object.oncomplete (fs.js:107:15)

Please test 45ef3fb

Code works. Your if statement order could be better, though.