Nov-08-2022, 12:06 AM
Hi Team,
I am trying to move folders and subfolders. from one location to another.
I want to override folders.
getting error :
raise Error("Destination path '%s' already exists" % real_dst)
shutil.Error: Destination path 'E:\DATA\d\A' already exists
I am trying to move folders and subfolders. from one location to another.
I want to override folders.
getting error :
raise Error("Destination path '%s' already exists" % real_dst)
shutil.Error: Destination path 'E:\DATA\d\A' already exists
import shutil # Source path source = "E:\DATA\A" # Destination path destination = "E:\DATA\d" # Move the content of # source to destination dest = shutil.move(source, destination)