Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
5493d3cd5d | |||
bd50c122eb |
9
dist/smartfile.fs.js
vendored
9
dist/smartfile.fs.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "smartfile",
|
"name": "smartfile",
|
||||||
"version": "4.2.9",
|
"version": "4.2.10",
|
||||||
"description": "offers smart ways to work with files in nodejs",
|
"description": "offers smart ways to work with files in nodejs",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
|
@ -43,7 +43,11 @@ export let fileExists = function (filePath) {
|
|||||||
* Checks if given path points to an existing directory
|
* Checks if given path points to an existing directory
|
||||||
*/
|
*/
|
||||||
export let isDirectory = function (pathArg): boolean {
|
export let isDirectory = function (pathArg): boolean {
|
||||||
return plugins.fsExtra.statSync(pathArg).isDirectory()
|
try {
|
||||||
|
return plugins.fsExtra.statSync(pathArg).isDirectory()
|
||||||
|
} catch (err) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user