1 | /**
|
2 | * Copyright (c) 2014, Facebook, Inc. All rights reserved.
|
3 | *
|
4 | * This source code is licensed under the BSD-style license found in the
|
5 | * LICENSE file in the root directory of this source tree. An additional grant
|
6 | * of patent rights can be found in the PATENTS file in the same directory.
|
7 | *
|
8 | *
|
9 | */
|
10 |
|
11 | ;
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | const fs = require('fs');
|
17 |
|
18 | module.exports = (
|
19 | filePath,
|
20 | hasteFS) =>
|
21 | hasteFS && hasteFS.exists(filePath) || fs.existsSync(filePath); |
\ | No newline at end of file |