UNPKG
sls3-legacy
Version:
latest (3.42.1)
3.42.1
3.42.0
3.41.1
SLS3 Legacy - A fork of Serverless Framework v3
github.com/deel77/sls3-legacy
deel77/sls3-legacy
sls3-legacy
/
lib
/
utils
/
fs
/
dir-exists-sync.js
15 lines
(11 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
const
fse =
require
(
'fs-extra'
);
function
dirExistsSync
(
dirPath
) {
try
{
const
stats = fse.
statSync
(dirPath);
return
stats.
isDirectory
(); }
catch
(e) {
return
false
; } }
module
.
exports
= dirExistsSync;