diff --git a/lib/dir.js b/lib/dir.js index 5a47ffa..77880d7 100644 --- a/lib/dir.js +++ b/lib/dir.js @@ -114,7 +114,7 @@ function constructIncludedDirectory(data) { return; } - splitDirPath = filepath.split('/'); + splitDirPath = filepath.split(p.sep); splitDirPath.pop(); // we generally don't want the top dir.