Path operations as a service (Effect's Path).
Programs that take the Path service instead of importing os.path
can be run against another platform's rules (layer_posix,
layer_win32) or a test double::
p = yield from Path()
config = p.join(home, ".config", "app.toml")posix and win32 follow Node's path.posix and path.win32, as
Effect does (join("/a", "/b") is "/a/b", dirname("/a/b/") is
"/a", relative of a path to itself is ""), on any host.
Re-exports#
Values#
| Attribute | Type | Description |
|---|---|---|
posix | PathService | POSIX rules (Node's |
win32 | PathService | Windows rules (Node's |
layer_posix | Layer[Path] |
|
layer_win32 | Layer[Path] |
|
layer | Layer[Path] | The host's rules. |