Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi,
I created an input S3 dataset based on REGEXP mode to select the files inside the S3 connection.
I clicked on "List files" i got the list of selected files.
Is it possible to retrieve the selected file names with Python API ? Could you please give us the snippet code to do that ?
Thank you for your help,
Best regards,
Victorine
Hi,
Yes it is possible, using this code:
import dataiku
dataiku.Dataset("yourdataset").get_files_info()["globalPaths"]
No, what are you really trying to achieve? If you want the file name in the records you load follow this post I created:
https://community.dataiku.com/t5/Using-Dataiku/Using-the-quot-Files-in-folder-quot-dataset/m-p/33214
Hi,
Yes it is possible, using this code:
import dataiku
dataiku.Dataset("yourdataset").get_files_info()["globalPaths"]