Skip to content

Commit

Permalink
Added platform specific file separator
Browse files Browse the repository at this point in the history
  • Loading branch information
BRoddeck authored and janraasch committed Mar 24, 2014
1 parent d4e4274 commit 4e26fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ var getFiles = function(inPath, cb) {
// Make `link` objects for the menu.
var menuLinks = function(files, basePath) {
return files.map(function(file) {
var parts = path.dirname(file).split('/');
var parts = path.dirname(file).split(path.sep);
parts.shift(); // Remove base directory name
return {
name: baseFilename(file),
Expand Down

0 comments on commit 4e26fb1

Please sign in to comment.