| 1 | /** |
| 2 | * Node.js `FileSystem` layer for programs that perform real filesystem I/O. |
| 3 | * |
| 4 | * The exported layer satisfies the platform-independent `FileSystem` service |
| 5 | * with Node-backed operations for files, directories, metadata, permissions, |
| 6 | * links, temporary paths, and path watching. Effects still call the service from |
| 7 | * `effect/FileSystem`; this module only chooses the Node implementation. |
| 8 | * |
| 9 | * @since 4.0.0 |
| 10 | */ |
| 11 | import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem" |
| 12 | import type { FileSystem } from "effect/FileSystem" |
| 13 | import type * as Layer from "effect/Layer" |
| 14 | |
| 15 | /** |
| 16 | * Provides the `FileSystem` service backed by Node filesystem APIs. |
| 17 | * |
| 18 | * @category layers |
| 19 | * @since 4.0.0 |
| 20 | */ |
| 21 | export const layer: Layer.Layer<FileSystem> = NodeFileSystem.layer |