Skip to main content

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

ParamTypeDescriptionRequired
keysdictDictionary with keys as object key names, and values as new object key namesFalse
prefixesdictDictionary with keys as prefix, and values as new prefixFalse

Note: At least one of keys or prefixes should be passed