hello guys i try to move all pictures to the folder and i getting an error can you please help me, i have been 25hours looking for the solution on internet Without success, please see the screen
import shutil
import os
class DFO_engine:
def __init__(self):
desk_source = open("desk_source.txt", "r")
direct_files = open("Direction_files.txt", "r")
link = direct_files.readlines()
desktop = os.listdir(desk_source.readline())
pictures_folder = link[0]
for files in desktop:
if files.endswith(".jpg"):
print(files)
shutil.move(files, pictures_folder)
desk_source.close()
direct_files.close()
action = DFO_engine()