The solana web3 connection with Xandeum-compatible JSON-RPC endpoint (e.g., 'https://api.devnet.solana.com'
).
The filesystem path representing the directory to list (e.g., /documents
).
A Promise<any>
resolving to the parsed JSON response from the RPC server,
typically including a result
array containing directory entry objects.
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.