[issue46763] os.path.samefile incorrect results for shadow copies

2022-02-15 Thread Nick Venenga
Nick Venenga added the comment: This script can reproduce the issue. The computer must be a Windows computer with volume shadow copy service enabled The computer must have shadow storage added to the drive being used This script changes the host machine by creating a shadow copy (permissions

[issue46763] os.path.samefile incorrect results for shadow copies

2022-02-15 Thread Nick Venenga
New submission from Nick Venenga : shutil.copy fails to copy a file from a shadow copy back to its original file since os.path.samefile returns True. os.path.samefile doesn't reliably detect these files are different since it relies on ino which is the same for both files >&g