mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
13 lines
207 B
JavaScript
13 lines
207 B
JavaScript
'use strict';
|
|
|
|
const fse = require('fs-extra');
|
|
|
|
function fileExists(filePath) {
|
|
return fse
|
|
.lstat(filePath)
|
|
.then(stats => stats.isFile())
|
|
.catch(() => false);
|
|
}
|
|
|
|
module.exports = fileExists;
|