fix(core): update

This commit is contained in:
2020-05-17 16:19:16 +00:00
parent 43d29947c5
commit 9dbd19d1a9
3 changed files with 7 additions and 7 deletions

View File

@ -57,7 +57,7 @@ export class Directory {
*/
public async listFiles(): Promise<File[]> {
const done = plugins.smartpromise.defer();
const fileNameStream = await this.bucketRef.smartbucketRef.minioClient.listObjectsV2(
const fileNameStream = await this.bucketRef.smartbucketRef.minioClient.listObjects(
this.bucketRef.name,
this.getBasePath()
);
@ -89,7 +89,7 @@ export class Directory {
*/
public async listDirectories(): Promise<Directory[]> {
const done = plugins.smartpromise.defer();
const completeDirStream = await this.bucketRef.smartbucketRef.minioClient.listObjectsV2(
const completeDirStream = await this.bucketRef.smartbucketRef.minioClient.listObjects(
this.bucketRef.name,
this.getBasePath(),
true
@ -122,7 +122,7 @@ export class Directory {
* gets an array that has all objects with a certain prefix;
*/
public async getTreeArray() {
const treeArray = await this.bucketRef.smartbucketRef.minioClient.listObjectsV2(
const treeArray = await this.bucketRef.smartbucketRef.minioClient.listObjects(
this.bucketRef.name,
this.getBasePath(),
true