import shutil
from tqdm import *
import glob
import os
from tkinter import filedialog
Root = filedialog.askdirectory()
FolderName = 'Backup_2TB'
SrcPath = Root
DstPath = os.getcwd() + '/' + FolderName
shutil.copytree(SrcPath, DstPath, symlinks=False, ignore=None)
Hello, I have a beginner's question for Python.
shutil symlinks ignore
DstPath is a path string. I don't know what's the point.
The second question replaces the Python document.
https://docs.python.org/ko/3/library/shutil.html#shutil.copytree
© 2024 OneMinuteCode. All rights reserved.