Socket
Socket
Sign inDemoInstall

node-dir

Package Overview
Dependencies
4
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.15 to 0.1.16

13

lib/paths.js

@@ -31,5 +31,10 @@ var fs = require('fs'),

var getStatHandler = function(statPath) {
var getStatHandler = function(statPath, lstatCalled) {
return function(err, stat) {
if (err) return callback(err);
if (err) {
if (!lstatCalled) {
return fs.lstat(statPath, getStatHandler(statPath, true));
}
return callback(err);
}
if (stat && stat.isDirectory() && stat.mode !== 17115) {

@@ -67,3 +72,3 @@ if (type !== 'file') {

fs.lstat(dir, function(err, stat) {
fs.stat(dir, function(err, stat) {
if (err) return callback(err);

@@ -78,3 +83,3 @@ if(stat && stat.mode === 17115) return done();

file = path.join(dir, list[i]);
fs.lstat(file, getStatHandler(file));
fs.stat(file, getStatHandler(file));
}

@@ -81,0 +86,0 @@ });

{
"name": "node-dir",
"version": "0.1.15",
"version": "0.1.16",
"description": "asynchronous file and directory operations for Node.js",

@@ -5,0 +5,0 @@ "main": "index",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc