Developer API
...
File Operations
Function: copyPath()
5 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / copypath copypath ( fsid , srcpath , destpath , wallet ) promise < transaction > defined in https //github com/xandeum/xandeum web3 js/blob/master/src/copypath ts#l18 constructs a solana transaction to copy a file or directory from one path to another parameters fsid string the unique numeric identifier representing the target file system srcpath string the source path to copy from (e g , /documents/report txt ) destpath string the destination path to copy to (e g , /archive/report txt ) wallet publickey the wallet public key used to sign and authorize the transaction returns promise < transaction > a promise that resolves to a solana transaction object containing the copypath instruction throws will throw an error if srcpath or destpath contains invalid characters