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

    Function copyPath

    • 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.

      Will throw an error if srcPath or destPath contains invalid characters.