(p: string)
| 2027 | } |
| 2028 | |
| 2029 | async function realpathOrResolve(p: string): Promise<string> { |
| 2030 | try { |
| 2031 | return await fs.realpath(p) |
| 2032 | } catch { |
| 2033 | return path.resolve(p) |
| 2034 | } |
| 2035 | } |
| 2036 | |
| 2037 | // Decide whether a readdir entry is a directory the vault walk should |
| 2038 | // descend into, returning its resolved real path (for cycle tracking) or |
no outgoing calls
no test coverage detected