how to move files from managed_folders to another
jdorgani
Registered Posts: 2 ✭✭✭
Hi everyone,
I am trying to move files from a managed_folders to another. In the managed folder's API documentation I see this function copy_to(target, write_mode='OVERWRITE'), but with this copies all the files when I only need to copy some. Is there a way to move the files without having to read them and then write them?
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,212 Dataiker
Hi @jdorgani
,Have you tried using the merge folder recipe?
https://doc.dataiku.com/dss/latest/connecting/managed_folders.html#merge-folder-recipe
This would do exactly what you are looking for.
If you need the Python API, you can to iterate through the files and copy each of them.Thanks