This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients chrahunt, eryksun
Date 2021-12-11.22:17:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
> Raising a SpecialFileError would be OK if `follow_symlinks` was False.

I expect it to fail if follow_symlinks is True, which is the default value. I expect it to succeed with follow_symlinks=False, which should create a shallow copy of just the symlink, regardless of its target. Instead, what happens is that it calls shutil._stat(fn) on both src and dst, regardless of follow_symlinks. I think the call should be shutil._stat(fn, follow_symlinks). This requires updating shutil._stat() to pass the value to fn.stat() and os.stat().
History
Date User Action Args
2021-12-11 22:17:08eryksunsetrecipients: + eryksun, chrahunt
2021-12-11 22:17:08eryksunsetmessageid: <[email protected]>
2021-12-11 22:17:08eryksunlinkissue37701 messages
2021-12-11 22:17:08eryksuncreate