Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion diveSync.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var fs = require('fs'),
OS_PATH_SEP = require('path').sep,
append = require('append');

// general function
Expand Down Expand Up @@ -33,7 +34,7 @@ var diveSync = function(dir, opt, action) {
list.sort().some(function (file) {
if (opt.all || file[0] != '.') {
// full path of that file
var path = dir + '/' + file;
var path = dir + OS_PATH_SEP + file;

// get the file's stats
var stat = fs.statSync(path);
Expand Down