Python code question shutil, '/'

Asked 1 years ago, Updated 1 years ago, 110 views

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

2022-09-21 17:06

1 Answers

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


2022-09-21 17:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.