fix(core): update
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user