Eueno
  • EUENO – Decentralized Encrypting Blockchain Oracles for Web3
    • Litepaper
    • Use Cases
  • Get Started
    • Prerequisites
    • Buckets
      • Create a bucket
      • Delete a bucket
    • Files
      • Upload a file
      • View a file
      • Delete a file
      • Share a file
  • Pricing
  • Eueno libraries
    • @eueno/lib-browser
      • Installation
      • Setup
      • Create key (generate a key for encrypting the file(s))
      • login()
      • useEuenoContext()
      • getUserInfo()
      • updateUserInfo()
      • createProject()
      • getProjectInfo()
      • getProjects()
      • getFilesListByFolder()
      • deleteProject()
      • createFolder()
      • uploadFolder()
      • Get folder detail
      • deleteFolder()
      • uploadFile()
      • uploadFileWithSignedUrl()
      • getCid()
      • getFileById()
      • getFileListById()
      • Get file detail
        • getDetailFile()
        • getDetailUnencryptedFile()
        • getDetailEncryptedFile()
      • getDetailMultiEncryptedFiles()
      • deleteFile()
      • shareFile()
      • shareMultiFile()
      • deleteSharePermission()
      • getShareList()
      • getShareListToMe ()
    • @eueno/lib-node
      • Create eueno client
      • Create project key
      • Create project
      • Upload file
      • Upload folder
      • Get file
      • Get list file
      • Share file
      • Get shared files
      • Create folder
      • Create Account
      • Decrypt Get Key Aes
      • Decrypt File by Key Aes
  • Policies
    • Privacy Policy
    • Terms of Service
Powered by GitBook
On this page
  • Syntax
  • Example
  1. Eueno libraries
  2. @eueno/lib-browser

Get folder detail

This method is used to get folder detail by the path which can access the folder.

PreviousuploadFolder()NextdeleteFolder()

Last updated 2 years ago

Use the method

Syntax

The syntax of this method is like the syntax of the method .

Example

Assuming that we have a path structure like Folder1/Folder2/Folder3 in a project with id 112. The example below shows how to get Folder2 detail.

import { getFilesListByFolder } from "@eueno/lib-browser";
const getFolderDetail = async () => {
   const projectId = “112”;
   const path = “Folder1/Folder2”;	
   const res = await getFilesListByFolder(projectId, path);
   console.log(res);
};

Response of example:

{
    "msg": "success",
    "data": {
        "folders": [
            "Folder3"
        ],
        "files": []
    },
    "options": {
        "totalItem": 1
    }
}

The response indicates that Folder2 has totalItem 1 includes: one folder named “Folder3” and no file.

getFileListByFolder()
getFileListByFolder()