MCPcopy Index your code
hub / github.com/python/cpython / _rmtree_islink

Function _rmtree_islink

Lib/shutil.py:660–663  ·  view source on GitHub ↗
(st)

Source from the content-addressed store, hash-verified

658
659if hasattr(os.stat_result, 'st_file_attributes'):
660 def _rmtree_islink(st):
661 return (stat.S_ISLNK(st.st_mode) or
662 (st.st_file_attributes & stat.FILE_ATTRIBUTE_REPARSE_POINT
663 and st.st_reparse_tag == stat.IO_REPARSE_TAG_MOUNT_POINT))
664else:
665 def _rmtree_islink(st):
666 return stat.S_ISLNK(st.st_mode)

Callers 1

_rmtree_unsafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…