mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
15 lines
237 B
JavaScript
15 lines
237 B
JavaScript
'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;
|