mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
15 lines
236 B
JavaScript
15 lines
236 B
JavaScript
'use strict';
|
|
|
|
const fse = require('fs-extra');
|
|
|
|
function fileExistsSync(filePath) {
|
|
try {
|
|
const stats = fse.statSync(filePath);
|
|
return stats.isFile();
|
|
} catch (e) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
module.exports = fileExistsSync;
|