Xandeum Web3 Library - v1.12.0
    Preparing search index...

    Function listDirectoryEntry

    • Sends a JSON-RPC request to the Xandeum RPC endpoint to list all entries (files and subdirectories) within a specified path.

      This function calls the custom RPC method listDirs, which is return an array of directory entry metadata — names, types etc.

      Parameters

      • connection: Connection

        The solana web3 connection with Xandeum-compatible JSON-RPC endpoint (e.g., 'https://api.devnet.solana.com').

      • path: string

        The filesystem path representing the directory to list (e.g., /documents).

      Returns Promise<any>

      A Promise<any> resolving to the parsed JSON response from the RPC server, typically including a result array containing directory entry objects.