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.
ReadTarFS.islink
TarInfo.issym
1 parent 2cdc9af commit 1dc42c6Copy full SHA for 1dc42c6
1 file changed
fs/tarfs.py
@@ -389,6 +389,13 @@ def isfile(self, path):
389
except KeyError:
390
return False
391
392
+ def islink(self, path):
393
+ _path = relpath(self.validatepath(path))
394
+ try:
395
+ return self._directory_entries[_path].issym()
396
+ except KeyError:
397
+ return False
398
+
399
def setinfo(self, path, info):
400
# type: (Text, RawInfo) -> None
401
self.check()
0 commit comments