Developer API
...
Directory Operations
Function: listDirectoryEntry()
3 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / listdirectoryentry listdirectoryentry ( connection , path ) promise < any > defined in https //github com/xandeum/xandeum web3 js/blob/master/src/listdirectoryentery ts#l24 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