Comparing version 0.6.3 to 0.6.4
@@ -84,5 +84,5 @@ /* | ||
return new Promise( ( resolve , reject ) => { | ||
tmp.file( options , ( error , path_ , fd , cleanupCallback ) => { | ||
tmp.file( options , ( error , filePath , fd , cleanupCallback ) => { | ||
if ( error ) { reject( error ) ; } | ||
else { resolve( { fd , path: path_ , cleanup: cleanupCallback } ) ; } | ||
else { resolve( { fd , path: filePath , cleanup: cleanupCallback } ) ; } | ||
} ) ; | ||
@@ -102,5 +102,5 @@ } ) ; | ||
return new Promise( ( resolve , reject ) => { | ||
tmp.dir( options , ( error , path_ , cleanupCallback ) => { | ||
tmp.dir( options , ( error , filePath , cleanupCallback ) => { | ||
if ( error ) { reject( error ) ; } | ||
else { resolve( { path: path_ , cleanup: cleanupCallback } ) ; } | ||
else { resolve( { path: filePath , cleanup: cleanupCallback } ) ; } | ||
} ) ; | ||
@@ -233,5 +233,5 @@ } ) ; | ||
// A small utility function return true if the path exists AND is a directory | ||
fsKit.isDir = fsKit.isDirectory = async ( path_ ) => { | ||
fsKit.isDir = fsKit.isDirectory = async ( filePath ) => { | ||
try { | ||
var stats = await fs.promises.stat( path_ ) ; | ||
var stats = await fs.promises.stat( filePath ) ; | ||
} | ||
@@ -248,5 +248,5 @@ catch ( error ) { | ||
// A small utility function return true if the path exists AND is a file (not a directory) | ||
fsKit.isFile = async ( path_ ) => { | ||
fsKit.isFile = async ( filePath ) => { | ||
try { | ||
var stats = await fs.promises.stat( path_ ) ; | ||
var stats = await fs.promises.stat( filePath ) ; | ||
} | ||
@@ -263,5 +263,5 @@ catch ( error ) { | ||
// A small utility function return true if the path exists AND is a file (not a directory) AND has exe permission (LINUX ONLY) | ||
fsKit.isExe = async ( path_ ) => { | ||
fsKit.isExe = async ( filePath ) => { | ||
try { | ||
var stats = await fs.promises.stat( path_ ) ; | ||
var stats = await fs.promises.stat( filePath ) ; | ||
} | ||
@@ -272,3 +272,3 @@ catch ( error ) { | ||
return stats.isFile() && fsKit.statsHasExe( stats ) ; | ||
return stats.isFile() && fsKit._isExe( stats , filePath ) ; | ||
} ; | ||
@@ -275,0 +275,0 @@ |
{ | ||
"name": "fs-kit", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "A Filesystem toolbox.", | ||
@@ -5,0 +5,0 @@ "main": "lib/fs.js", |
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
22612