(path: string)
| 39 | }) |
| 40 | |
| 41 | function 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 | |
| 50 | const isFresh = (req: Request, res: Response) => |
| 51 | fresh(req.headers, { |