MCPcopy Create free account
hub / github.com/anus-dev/ANUS / isFileSymlink

Method isFileSymlink

packages/core/src/utils/workspaceContext.ts:187–193  ·  view source on GitHub ↗

* Checks if a file path is a symbolic link that points to a file.

(filePath: string)

Source from the content-addressed store, hash-verified

185 * Checks if a file path is a symbolic link that points to a file.
186 */
187 private isFileSymlink(filePath: string): boolean {
188 try {
189 return !fs.readlinkSync(filePath).endsWith('/');
190 } catch (_error) {
191 return false;
192 }
193 }
194}

Callers 1

fullyResolvedPathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected