MCPcopy
hub / github.com/21st-dev/1code / lstat

Function lstat

src/main/lib/git/security/secure-fs.ts:410–414  ·  view source on GitHub ↗

* Get file stats without following symlinks. * * Use this when you need to know if something IS a symlink. * For size checks, prefer `stat` instead.

(worktreePath: string, filePath: string)

Source from the content-addressed store, hash-verified

408 * For size checks, prefer `stat` instead.
409 */
410 async lstat(worktreePath: string, filePath: string): Promise<Stats> {
411 assertRegisteredWorktree(worktreePath);
412 const fullPath = resolvePathInWorktree(worktreePath, filePath);
413 return lstat(fullPath);
414 },
415
416 /**
417 * Check if a file exists within a worktree.

Callers 4

assertParentInWorktreeFunction · 0.85
deleteFunction · 0.85
isSymlinkEscapingFunction · 0.85

Calls 2

assertRegisteredWorktreeFunction · 0.90
resolvePathInWorktreeFunction · 0.90

Tested by

no test coverage detected