Files
qoder-cli-vscode/node_modules/@nodelib/fs.stat/out/providers/sync.js
yuantao 1b742b91b5 chore: add node_modules dependencies
- Add all npm dependencies for the project

🤖 Generated with [Qoder](https://qoder.com)
2026-03-27 15:37:13 +08:00

24 lines
619 B
JavaScript

"use strict";
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;