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

    Function removeDirectory

    • Constructs a Solana transaction to perform a "remove directory" operation in a file system, identified by a file system ID (fsid).

      Parameters

      • fsid: string

        A stringified integer representing the file system ID containing the directory.

      • path: string

        The full path to the directory that should be removed.

      • wallet: PublicKey

        The public key of the wallet that will sign and authorize the transaction.

      Returns Promise<Transaction>

      A Promise that resolves to a Solana Transaction object containing the remove directory instruction.

      May throw an error if the path fails validation in sanitizePath.