--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
18
node_modules/fs-exists-sync/index.js
generated
vendored
Normal file
18
node_modules/fs-exists-sync/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/*!
|
||||
* fs-exists-sync (https://github.com/jonschlinkert/fs-exists-sync)
|
||||
*
|
||||
* Copyright (c) 2016, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
|
||||
module.exports = function(filepath) {
|
||||
try {
|
||||
(fs.accessSync || fs.statSync)(filepath);
|
||||
return true;
|
||||
} catch (err) {}
|
||||
return false;
|
||||
};
|
||||
Loading…
Reference in a new issue