From 4e26fb1c327e1fdd83abff5bc82cfcc579e69a31 Mon Sep 17 00:00:00 2001 From: BRoddeck Date: Mon, 24 Mar 2014 09:31:24 +0100 Subject: [PATCH] Added platform specific file separator --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index f648c48..f0395b8 100644 --- a/cli.js +++ b/cli.js @@ -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),