(key: string, path: string)
| 60 | |
| 61 | // Unused? |
| 62 | async delete(key: string, path: string): Promise<boolean> { |
| 63 | try { |
| 64 | await this.instance.deleteObject({Bucket: this.bucket, Key: `${path}/${key}`}); |
| 65 | } catch (x: any) { |
| 66 | if (x instanceof NoSuchKey) return false; |
| 67 | throw x; |
| 68 | } |
| 69 | return true; |
| 70 | } |
| 71 | |
| 72 | async put(key: string, value: Buffer, path: string, options: S3HandlerOptions): Promise<void> { |
| 73 | await this.instance.putObject({ |
no outgoing calls
no test coverage detected