[New-bugs-announce] [issue30974] os.samefile / shutil._samefile: following symlinks

Marcel Partap report at bugs.python.org
Thu Jul 20 04:07:10 EDT 2017


New submission from Marcel Partap:

Don't know whether it should be considered a documentation or behavioral issue, but os.samefile calls os.stat() on given files, following symlinks. Does this really "test whether two pathnames reference the same actual file"? I'd consider os.lstat() more suited for that.

This bites me every time I want to overwrite a symlink with its referenced file using ranger.

----------
messages: 298708
nosy: eMPee584
priority: normal
severity: normal
status: open
title: os.samefile / shutil._samefile: following symlinks
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30974>
_______________________________________


More information about the New-bugs-announce mailing list