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