Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from valeriangalliat/master
Browse files Browse the repository at this point in the history
Add support for symlinks in content dir.
  • Loading branch information
gilbitron committed Apr 22, 2015
2 parents 3b4ae8a + a88334c commit 7442d9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions raneto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7442d9e

Please sign in to comment.