UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

18 lines (14 loc) 288 B
'use strict'; const fse = require('fs-extra'); function dirExists(path) { return fse.lstat(path).then( (stats) => stats.isDirectory(), (error) => { if (error.code === 'ENOENT') { return false; } throw error; } ); } module.exports = dirExists;