refactor(core): move path resolve into fs service (#35201)
This commit is contained in:
parent
6f47459c68
commit
aad8d90dd1
6 changed files with 37 additions and 21 deletions
|
|
@ -139,7 +139,7 @@ const layer = Layer.effect(
|
|||
})
|
||||
|
||||
const canonical = Effect.fnUntraced(function* (input: AbsolutePath) {
|
||||
const resolved = AbsolutePath.make(FSUtil.resolve(input))
|
||||
const resolved = AbsolutePath.make(yield* fs.resolve(input))
|
||||
if (!(yield* fs.isDir(resolved))) return yield* new DirectoryUnavailableError({ directory: input })
|
||||
return resolved
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue