Buckets:
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.read = void 0; | |
| function read(path, settings) { | |
| const lstat = settings.fs.lstatSync(path); | |
| if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { | |
| return lstat; | |
| } | |
| try { | |
| const stat = settings.fs.statSync(path); | |
| if (settings.markSymbolicLink) { | |
| stat.isSymbolicLink = () => true; | |
| } | |
| return stat; | |
| } | |
| catch (error) { | |
| if (!settings.throwErrorOnBrokenSymbolicLink) { | |
| return lstat; | |
| } | |
| throw error; | |
| } | |
| } | |
| exports.read = read; | |
Xet Storage Details
- Size:
- 619 Bytes
- Xet hash:
- 2f590c4f668269126ef5343bceb556b98f1bd41475689a2d0124cf732b7f7b6b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.