Skip to content

The agent that grows with you

add nt check back in

ethernet27808494c578
diff --git a/pm/filesystem.py b/pm/filesystem.py
index 560dc2367a1..dff5da2bf08 100644
--- a/pm/filesystem.py
+++ b/pm/filesystem.py
@@ -26,6 +26,8 @@ def is_junction(path: Path) -> bool:
probe slots that do not exist yet (a first plugin install) and must get False, not a crash.
POSIX stat results carry no reparse tag, which lands in the same False.
"""
+ if os.name != "nt":
+ return False
try:
return path.lstat().st_reparse_tag == stat.IO_REPARSE_TAG_MOUNT_POINT
except (OSError, AttributeError):