Skip to main content

i want to create a bot that downloads file from each data set, some of which has the same file name but from different sources, but most of it have completely different file names from different sources.

is it possible to rename each file one after another as soon as i finish downloading each file?

for example:

source1        source2         source3

file1                file4                  file1

file2                file5                  file4

file3                                         file8

so i created a both that downloads all of these files, but i realized after that its confusing to know which file came from where. 

so what i was hoping to do is. once i finish downloading file1, i would like it to rename into source1-file1

then download the next file and rename it to source1-file2

and so on.. please help

Be the first to reply!

Reply