MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / samefile

Method samefile

tools/python-3.11.9-amd64/Lib/pathlib.py:916–925  ·  view source on GitHub ↗

Return whether other_path is the same or not as this file (as returned by os.path.samefile()).

(self, other_path)

Source from the content-addressed store, hash-verified

914 return cls("~").expanduser()
915
916 def samefile(self, other_path):
917 """Return whether other_path is the same or not as this file
918 (as returned by os.path.samefile()).
919 """
920 st = self.stat()
921 try:
922 other_st = other_path.stat()
923 except AttributeError:
924 other_st = self.__class__(other_path).stat()
925 return os.path.samestat(st, other_st)
926
927 def iterdir(self):
928 """Iterate over the files in this directory. Does not yield any

Callers 13

get_keyring_providerFunction · 0.95
mainFunction · 0.80
_get_revised_pathFunction · 0.80
_samefileFunction · 0.80
copy_fileFunction · 0.80
gen_setupMethod · 0.80
install_eggMethod · 0.80
copy_fileFunction · 0.80
find_packagesFunction · 0.80
from_distMethod · 0.80

Calls 2

statMethod · 0.95
__class__Method · 0.45

Tested by

no test coverage detected