UNPKG

455 BJavaScriptView Raw
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'use strict';
12
13
14
15
16const fs = require('fs');
17
18module.exports = (
19filePath,
20hasteFS) =>
21hasteFS && hasteFS.exists(filePath) || fs.existsSync(filePath);
\No newline at end of file