Remove this file or link. If the path is a directory, use rmdir() instead.
(self, missing_ok=False)
| 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 | """ |