(path: string, options?: { force?: boolean; recursive?: boolean })
| 162 | } |
| 163 | |
| 164 | public async rm(path: string, options?: { force?: boolean; recursive?: boolean }): Promise<void> { |
| 165 | const { force, recursive } = options || {}; |
| 166 | await this.channel.send('fs/rm', { path, force, recursive }).catch((error) => { |
| 167 | throw new Error(format('Failed to remove file at path "%s"', path), { cause: error }); |
| 168 | }); |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Subscribe to changes at the given file or directory. |