Return whether other_path is the same or not as this file (as returned by os.path.samefile()).
(self, other_path)
| 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 |
no test coverage detected