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

Method is_symlink

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

Whether this path is a symbolic link.

(self)

Source from the content-addressed store, hash-verified

1296 return ino == parent_ino
1297
1298 def is_symlink(self):
1299 """
1300 Whether this path is a symbolic link.
1301 """
1302 try:
1303 return S_ISLNK(self.lstat().st_mode)
1304 except OSError as e:
1305 if not _ignore_error(e):
1306 raise
1307 # Path doesn't exist
1308 return False
1309 except ValueError:
1310 # Non-encodable path
1311 return False
1312
1313 def is_block_device(self):
1314 """

Callers 6

_walkFunction · 0.45
_fwalkFunction · 0.45
_islinkFunction · 0.45
_copytreeFunction · 0.45
_rmtree_unsafeFunction · 0.45
_can_symlink_filesFunction · 0.45

Calls 3

lstatMethod · 0.95
S_ISLNKFunction · 0.90
_ignore_errorFunction · 0.85

Tested by

no test coverage detected