Method: listFiles


The listFiles method is for fetching information about all files in a bucket such as the key, hash and publicUrl.

Example of usage:

const files = await fleekStorage.listFiles({
apiKey: 'my-key',
apiSecret: 'my-secret',
getOptions: [

Input parameters of listFiles

apiKeyStringThe api key used for authentication
apiSecretStringThe api secret used for authentication
bucketString, optional, defaults to the default account bucketThe name of the bucket containing the file. A bucket is created by default with every Fleek account
getOptionsArray, optional, defaults to ['key', 'bucket', 'publicUrl']An array specifying what type of information to retrieve concerning the file. Possible values for the array includes bucket, hash, key, publicUrl