* 获取当前目录的 URL * 自定义 endpoint 返回 endpoint + bucket/prefix 路径 * AWS S3 返回控制台 URL
()
| 264 | * AWS S3 返回控制台 URL |
| 265 | */ |
| 266 | async getDirUrl(): Promise<string> { |
| 267 | const prefix = this.basePath === "/" ? "" : this.basePath.substring(1); |
| 268 | if (this.client.hasCustomEndpoint()) { |
| 269 | const url = this.client.getEndpointUrl(); |
| 270 | return `${url}/${this.bucket}/${prefix}`; |
| 271 | } |
| 272 | return `https://s3.console.aws.amazon.com/s3/buckets/${this.bucket}?prefix=${encodeURIComponent(prefix)}®ion=${this.client.getRegion()}`; |
| 273 | } |
| 274 | } |
nothing calls this directly
no test coverage detected