Skip to content

Commit 9b39c02

Browse files
committed
add is_symlink impl
1 parent f11c9bb commit 9b39c02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

upath/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ def is_mount(self):
271271
return False
272272

273273
def is_symlink(self):
274+
info = self._accessor.info(self)
275+
if "islink" in info:
276+
return info["islink"]
274277
return False
275278

276279
def is_socket(self):

0 commit comments

Comments
 (0)