We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a80cf commit 3f466ceCopy full SHA for 3f466ce
pyfakefs/fake_scandir.py
@@ -114,6 +114,15 @@ def stat(self, follow_symlinks=True):
114
def __fspath__(self):
115
return self.path
116
117
+ if sys.version_info >= (3, 12):
118
+ def is_junction(self) -> bool:
119
+ """Return True if this entry is a junction.
120
+ Junctions are not a part of posix semantic."""
121
+ if not self._filesystem.is_windows_fs:
122
+ return False
123
+ file_object = self._filesystem.resolve(self._abspath)
124
+ return file_object.is_junction
125
+
126
127
class ScanDirIter:
128
"""Iterator for DirEntry objects returned from `scandir()`
0 commit comments