Move objects
move_objects(keys, prefixes)
Moves keys/prefixes to the new keys/prefixes
#move keys
storage.move_objects(
keys={
"directory/file.ext": "directory/data.ext",
"directory/sample.csv": "raw-data/sample.csv",
}
)
#move by prefix
storage.move_objects(
prefixes={
"directory1/": "directory2/",
"raw-data/": "data/",
}
)
Parameters
Param | Type | Description | Required |
---|---|---|---|
keys | dict | Dictionary with keys as object key names, and values as new object key names | False |
prefixes | dict | Dictionary with keys as prefix, and values as new prefix | False |
Note: At least one of keys or prefixes should be passed