Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import shutil
- def copytree(src, dst, symlinks=False, ignore=None):
- for item in os.listdir(src):
- s = os.path.join(src, item)
- d = os.path.join(dst, item)
- if os.path.isdir(s):
- shutil.copytree(s, d, symlinks, ignore)
- else:
- shutil.copy2(s, d)
- folder = [_ for _ in os.listdir() if os.path.isdir(os.getcwd() + '\\' + _) and not _.startswith('.')].pop()
- drives = ["E","F","G","H","J"]
- for drive in drives:
- copytree(folder,drive)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement