Skip to content

Commit

Permalink
Merge pull request #19 from thebeekeeper/master
Browse files Browse the repository at this point in the history
Fix dir handling for windows
  • Loading branch information
gilbitron committed Jun 4, 2014
2 parents 187bd54 + ff936d7 commit 138b349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raneto.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ var raneto = {
});

files.forEach(function(filePath){
var shortPath = filePath.replace(__dirname +'/content/', '').trim(),
var dir = __dirname.replace(/\\/g, "/") + '/content/';
var shortPath = filePath.replace(dir, '').trim(),
stat = fs.lstatSync(filePath);

if(stat.isDirectory()){
Expand Down

0 comments on commit 138b349

Please sign in to comment.