fix delete file and report
This commit is contained in:
parent
35b06d8c67
commit
3ce799f9be
3 changed files with 95 additions and 80 deletions
|
|
@ -48,11 +48,11 @@ export async function setFile(path: string, exp = 6 * 60 * 60) {
|
|||
return await minio.presignedPutObject(MINIO_BUCKET, path, exp);
|
||||
}
|
||||
|
||||
export async function deleteFile(path: string) {
|
||||
export async function s3DeleteFile(path: string) {
|
||||
await minio.removeObject(MINIO_BUCKET, path, { forceDelete: true });
|
||||
}
|
||||
|
||||
export async function deleteFolder(path: string) {
|
||||
export async function s3DeleteFolder(path: string) {
|
||||
new Promise<string[]>((resolve, reject) => {
|
||||
const item: string[] = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue