so I have been working on a simple python program to iterate through each file name on the computer to check for the file type of an image or well any file type.
for i in drives:
for root, dirs, files in os.walk(str(i.replace("\\","\\\\"))):
#print(root,dirs)
for file in files:
if file.endswith(".jpeg"):
pictures.append(file)
You see that I used a simple for loop group(i think they call this nesting I don't know) and I was wondering if there is someway to GPU accelerate this operation or can you point me in a direction so that I can improve the efficiency another way. I do note that there was a question on stack about searching filepaths for keyword but I am asking for a way to improve efficiency