I wanted to try copying a directory's contents to another directory with just a partial filepath, and couldn't get it to work myself with this code;
srcdir = "\a\b\c"
destdir = "\x\y\z"
shutil.copytree(srcdir, destdir)
print("Done")
time.sleep(0.5)
exit()
How do i make it so it can use only the last parts of the filepath and match them to an existing, full filepath on the system?