Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutil.copytree(src, dst,symlinks=True) #1610

Open
zelong77 opened this issue Jul 28, 2020 · 3 comments
Open

shutil.copytree(src, dst,symlinks=True) #1610

zelong77 opened this issue Jul 28, 2020 · 3 comments

Comments

@zelong77
Copy link

复制目录时没有参数symlinks=True 会复制链接文件的源文件导致环境路径错误

https://github.com/lra/mackup/blob/master/mackup/utils.py 105

@Crocmagnon
Copy link
Contributor

A rough english translation gives

Copying a directory without symlinks=True will copy the source file of the linked file causing an environment path error

I guess it may be related to #1638?

@zelong77
Copy link
Author

zelong77 commented Jan 9, 2021

粗略的英语翻译给出

复制不带目录的目录symlinks=True将复制链接文件的源文件,从而导致环境路径错误

我想这可能与#1638有关

是的 默认shutil.copytree(src, dst)会破坏symbol links,为什么不shutil.copytree(src,dst,symlinks = True)

@Crocmagnon
Copy link
Contributor

Please communicate in English, we have no idea of what you mean otherwise 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants