From a88334c7395c2a396b57d84f4ea72398b8b88934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Galliat?= Date: Wed, 16 Jul 2014 11:57:13 +0200 Subject: [PATCH] Add support for symlinks in content dir. --- raneto.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/raneto.js b/raneto.js index 6e64042..9cdec52 100644 --- a/raneto.js +++ b/raneto.js @@ -131,6 +131,10 @@ var raneto = { var shortPath = filePath.replace(raneto.config.content_dir, '').trim(), stat = fs.lstatSync(filePath); + if(stat.isSymbolicLink()) { + stat = fs.lstatSync(fs.readlinkSync(filePath)); + } + if(stat.isDirectory()){ var sort = 0;