Comparing version 0.2.5 to 0.2.6
# master | ||
# 0.2.6 | ||
* On Windows, normalize backslashes in root path to forward slashes | ||
# 0.2.5 | ||
@@ -4,0 +8,0 @@ |
12
index.js
@@ -5,2 +5,3 @@ 'use strict'; | ||
var MatcherCollection = require('matcher-collection'); | ||
var path = require('path'); | ||
@@ -26,2 +27,10 @@ function handleOptions(_options) { | ||
function ensurePosix(filepath) { | ||
if (path.sep !== '/') { | ||
return filepath.split(path.sep).join('/'); | ||
} | ||
return filepath; | ||
} | ||
module.exports = walkSync; | ||
@@ -39,3 +48,4 @@ function walkSync(baseDir, _options) { | ||
return _walkSync(baseDir, options); | ||
return _walkSync(ensurePosix(baseDir), options); | ||
}; | ||
@@ -42,0 +52,0 @@ |
{ | ||
"name": "walk-sync", | ||
"description": "Get an array of recursive directory contents", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
# node-walk-sync | ||
[![Build Status](https://travis-ci.org/joliss/node-walk-sync.png?branch=master)](https://travis-ci.org/joliss/node-walk-sync) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/sqe785gqb2qfmxbx/branch/master?svg=true)](https://ci.appveyor.com/project/joliss/node-walk-sync/branch/master) | ||
@@ -35,3 +36,4 @@ Return an array containing all recursive files and directories under a given | ||
*Note: directories come before their contents, and have a trailing slash.* | ||
Directories come before their contents, and have a trailing forward-slash (on | ||
all platforms). | ||
@@ -38,0 +40,0 @@ Symlinks are followed. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7941
94
94