MCPcopy Create free account
hub / github.com/tinyhttp/tinyhttp / createIsDirError

Function createIsDirError

packages/favicon/src/index.ts:41–48  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

39})
40
41function createIsDirError(path: string) {
42 const error: NodeJS.ErrnoException = new Error(`EISDIR, illegal operation on directory '${path}' `)
43 error.code = 'EISDIR'
44 error.errno = 28
45 error.path = path
46 error.syscall = 'open'
47 return error
48}
49
50const isFresh = (req: Request, res: Response) =>
51 fresh(req.headers, {

Callers 1

resolveSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected