MCPcopy Index your code
hub / github.com/RustPython/RustPython / unlink

Method unlink

Lib/pathlib/__init__.py:1036–1045  ·  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

1034 self.chmod(mode, follow_symlinks=False)
1035
1036 def unlink(self, missing_ok=False):
1037 """
1038 Remove this file or link.
1039 If the path is a directory, use rmdir() instead.
1040 """
1041 try:
1042 os.unlink(self)
1043 except FileNotFoundError:
1044 if not missing_ok:
1045 raise
1046
1047 def rmdir(self):
1048 """

Callers 2

_deleteMethod · 0.95
scriptMethod · 0.95

Calls

no outgoing calls

Tested by 1

scriptMethod · 0.76