Developer API
...
File Operations
Function: renamePath()
5 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / renamepath renamepath ( fsid , oldpath , name , wallet ) promise < transaction > defined in https //github com/xandeum/xandeum web3 js/blob/master/src/renamepath ts#l18 constructs a solana transaction to rename (or move) a file or directory within a file system, based on a provided file system id ( fsid ) parameters fsid string a stringified integer representing the file system id where the path exists oldpath string the current path of the file or directory to be renamed or moved name string the new name to assign to the file or directory wallet publickey the public key of the wallet that signs and authorizes the transaction returns promise < transaction > a promise that resolves to a solana transaction object containing the rename path instruction throws may throw an error if either oldpath or newpath is invalid per sanitizepath