skipper-disk
Advanced tools
Comparing version 0.5.2 to 0.5.3
13
index.js
@@ -5,2 +5,4 @@ /** | ||
var path = require('path'); | ||
var _ = require('lodash'); | ||
var fsx = require('fs-extra'); | ||
@@ -10,2 +12,3 @@ var r_buildDiskReceiverStream = require('./standalone/build-disk-receiver-stream'); | ||
/** | ||
@@ -36,3 +39,11 @@ * skipper-disk | ||
ls: function(dirpath, cb) { | ||
return fsx.readdir(dirpath, cb); | ||
return fsx.readdir(dirpath, function (err, files){ | ||
if (err) return cb(err); | ||
files = _.reduce(_.isArray(files)?files:[], function (m, filename){ | ||
var fd = path.join(dirpath,filename); | ||
m.push(fd); | ||
return m; | ||
}, []); | ||
cb(null, files); | ||
}); | ||
}, | ||
@@ -39,0 +50,0 @@ |
{ | ||
"name": "skipper-disk", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Receive Skipper's file uploads on your local filesystem", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"skipper-adapter-tests": "~1.5.1" | ||
"skipper-adapter-tests": "~1.5.2" | ||
}, | ||
@@ -34,0 +34,0 @@ "dependencies": { |
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
16845
274