Skip to content

bucket_move_file

jaybgager edited this page Sep 25, 2026 · 1 revision

Moves a file from one location to another on a cloudfiles-managed S3-style bucket. Requires permission to write to the bucket.

Arguments:

  • file_path (string, mandatory)
    • the absolute path on the bucket to the file you want to move
  • new_folder_path (string, mandatory)
    • the absolute path on the bucket to the folder where you want the file moved
    • will create new folders if they don't already exist

Example

INPUT:

import tracertools as tt

tt.bucket_move_file(
    file_path = "bucket://path/to/file"
    new_folder_path = "bucket://path/to/new/folder"
)

Clone this wiki locally