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

Commit

Permalink
Add support for symlinks in content dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriangalliat committed Jul 16, 2014
1 parent 3b4ae8a commit a88334c
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 a88334c

Please sign in to comment.