(path: string, options: ReaddirOptions = {})
| 174 | } |
| 175 | |
| 176 | readdir(path: string, options: ReaddirOptions = {}): Promise<WorkspaceDirentResult[]> { |
| 177 | return withSpan( |
| 178 | this.#ws.observer, |
| 179 | "workspace.fs.readdir", |
| 180 | { "workspace.fs.path": path }, |
| 181 | () => this.#ws.fs.readdir(path, options), |
| 182 | (span, outcome) => { |
| 183 | if (outcome.ok) span.setAttribute("workspace.fs.entries", outcome.value.length); |
| 184 | }, |
| 185 | ); |
| 186 | } |
| 187 | |
| 188 | find(directory: string, pattern?: string): Promise<WorkspaceFoundEntry[]> { |
| 189 | return withSpan( |
nothing calls this directly
no test coverage detected