Relative Content

Tag Archive for pythonshutil

FileNotFoundError while using shutil.move()

The program successfully sorts the file in the designated folder but it tries to find that exact same file to sort again and shows a FileNotFoundError because the file has already been moved to the folder.

Files Lost from Shutil.Move Function

I have a bunch of files within a separate drive, a D: drive. My goal was to move all jpg, png, and gif files to a ‘images’ folder and all mp4, mov files to a ‘videos’ folder; except for files within a particular folder.