source: trip-planner-front/node_modules/@nodelib/fs.stat/out/providers/sync.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 619 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.read = void 0;
4function read(path, settings) {
5 const lstat = settings.fs.lstatSync(path);
6 if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
7 return lstat;
8 }
9 try {
10 const stat = settings.fs.statSync(path);
11 if (settings.markSymbolicLink) {
12 stat.isSymbolicLink = () => true;
13 }
14 return stat;
15 }
16 catch (error) {
17 if (!settings.throwErrorOnBrokenSymbolicLink) {
18 return lstat;
19 }
20 throw error;
21 }
22}
23exports.read = read;
Note: See TracBrowser for help on using the repository browser.