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

Method unlink

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

Remove this file or link. If the path is a directory, use rmdir() instead.

(self, missing_ok=False)

Source from the content-addressed store, hash-verified

1139 self.chmod(mode, follow_symlinks=False)
1140
1141 def unlink(self, missing_ok=False):
1142 """
1143 Remove this file or link.
1144 If the path is a directory, use rmdir() instead.
1145 """
1146 try:
1147 os.unlink(self)
1148 except FileNotFoundError:
1149 if not missing_ok:
1150 raise
1151
1152 def rmdir(self):
1153 """

Callers 15

_create_wheel_fileMethod · 0.95
_find_grail_rcMethod · 0.45
compile_fileFunction · 0.45
getpagerFunction · 0.45
_rmtree_unsafeFunction · 0.45
_rmtree_safe_fdFunction · 0.45
moveFunction · 0.45
makelinkMethod · 0.45
check_outputFunction · 0.45
nextfileMethod · 0.45
_readlineMethod · 0.45
_get_default_tempdirFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected