Dec-26-2022, 03:15 PM
(Dec-25-2022, 07:38 PM)noisefloor Wrote: Hello,
possible blueprint:
Makefiles
a Dictionary, create for each file a key with a list as the value and and the file's corresponding path to the list.
Once the dict is complete, you can iterate over the dict looking for values with a length > 1.
Regards, noisefloor
Hello,
I tried this ... but 'location' values aren't added but updated.
list1 = [dir1, dir2, dir3, dir4, dir5] files = {} for folder in list1: files.update({f:folder for f in os.listdir(folder)})The comprehension expression has to be modified in some way.