mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
13 lines
209 B
JavaScript
13 lines
209 B
JavaScript
'use strict';
|
|
|
|
const fse = require('./fse');
|
|
|
|
function fileExists(filePath) {
|
|
return fse
|
|
.lstatAsync(filePath)
|
|
.then(stats => stats.isFile())
|
|
.catch(() => false);
|
|
}
|
|
|
|
module.exports = fileExists;
|