Список файлов S3 до определенной папкиPython

Программы на Python
Гость
Список файлов S3 до определенной папки

Сообщение Гость »


I have the following structure:

YEAR/MONTH/DAY/folder1/folder2/file.zip YEAR/MONTH/DAY/folder1/folder2/folder3/folder4/folder5/somefiles.txt YEAR/MONTH/DAY/folder100/folder102/file2.zip I have that for 3 years with each month in each day. I'm trying to write a python script that will print just the zip file, or more correctly that will print the files after the folder102 or fodler2 folder, like to limit the function not printing the objects after the 5 folders from the start.

I want to use the "s3_client.list_objects_v2" and "objects.filter" methods. How can I implement this logic using the methods mentioned before?


Источник: https://stackoverflow.com/questions/780 ... fic-folder

Вернуться в «Python»