( method: string, pathOrDescriptor: string | number | undefined, evaluate: () => AsyncIterable<A> )
| 30 | })) |
| 31 | |
| 32 | const collectAsyncIterable = <A>( |
| 33 | method: string, |
| 34 | pathOrDescriptor: string | number | undefined, |
| 35 | evaluate: () => AsyncIterable<A> |
| 36 | ) => |
| 37 | Effect.tryPromise({ |
| 38 | try: async () => { |
| 39 | const values = new Array<A>() |
| 40 | for await (const value of evaluate()) { |
| 41 | values.push(value) |
| 42 | } |
| 43 | return values |
| 44 | }, |
| 45 | catch: handleError("FileSystem", method, pathOrDescriptor) |
| 46 | }) |
| 47 | |
| 48 | const access: FileSystem.FileSystem["access"] = (path, options) => { |
| 49 | if (!options?.readable && !options?.writable) { |
no test coverage detected