MCPcopy
hub / github.com/anomalyco/models.dev / isSymlink

Function isSymlink

packages/core/src/sync/index.ts:442–449  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

440}
441
442async function isSymlink(filePath: string) {
443 try {
444 return (await lstat(filePath)).isSymbolicLink();
445 } catch (error) {
446 if (error instanceof Error && "code" in error && error.code === "ENOENT") return false;
447 throw error;
448 }
449}
450
451async function readModelMetadata(modelsDir: string) {
452 const metadataDir = modelMetadataDir(modelsDir);

Callers 1

syncProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected