How can i list all the files that are in a repository?

i am trying to make a script in python and we need to know what files are in the repository so we can check the version we have up there and figure out what to upload later on.

is there an Api that list the files? (might be some pagination to do) or there is a python library for that?

thanks guys.

did you find answer I need script to get old files and delete them with Api
thanks

you can find these in medata dir.
for example, if this apt repo ,you can find these message in page

https://{URL}/repository/{REPONAME}/dists/bionic/main/binary-all/Packagesdownload

1 Like

Hilton thank you this is good too and trying add here with year so I can list old artifacts with the year and delete them.

thank you