MCPcopy
hub / github.com/claude-code-best/claude-code / isFsInaccessible

Function isFsInaccessible

src/utils/errors.ts:186–195  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

184 * ELOOP — too many symlink levels (circular symlinks)
185 */
186export function isFsInaccessible(e: unknown): e is NodeJS.ErrnoException {
187 const code = getErrnoCode(e)
188 return (
189 code === 'ENOENT' ||
190 code === 'EACCES' ||
191 code === 'EPERM' ||
192 code === 'ENOTDIR' ||
193 code === 'ELOOP'
194 )
195}
196
197export type AxiosErrorKind =
198 | 'auth' // 401/403 — caller typically sets skipRetry

Callers 15

errors.test.tsFile · 0.90
readAgentMetadataFunction · 0.85
readRemoteAgentMetadataFunction · 0.85
listRemoteAgentMetadataFunction · 0.85
readCronTasksFunction · 0.85
getProjectDirsUpToHomeFunction · 0.85
loadMarkdownFilesFunction · 0.85
listAllLiveSessionsFunction · 0.85
detectFileEncodingFunction · 0.85

Calls 1

getErrnoCodeFunction · 0.85

Tested by

no test coverage detected