(path: string, options?: { recursive?: boolean })
| 145 | } |
| 146 | |
| 147 | public async mkdir(path: string, options?: { recursive?: boolean }): Promise<void> { |
| 148 | const recursive = !!options?.recursive; |
| 149 | await this.channel.send('fs/mkdir', { path, recursive }).catch((error) => { |
| 150 | throw new Error(format('Failed to make directory at path "%s"', path), { cause: error }); |
| 151 | }); |
| 152 | } |
| 153 | |
| 154 | public async stat(path: string): Promise<IFileStats> { |
| 155 | const response = await this.channel.send('fs/stat', { path }).catch((error) => { |
no test coverage detected