Remove this file or link. If the path is a directory, use rmdir() instead.
(self, missing_ok=False)
| 1232 | self.chmod(mode, follow_symlinks=False) |
| 1233 | |
| 1234 | def unlink(self, missing_ok=False): |
| 1235 | """ |
| 1236 | Remove this file or link. |
| 1237 | If the path is a directory, use rmdir() instead. |
| 1238 | """ |
| 1239 | try: |
| 1240 | os.unlink(self) |
| 1241 | except FileNotFoundError: |
| 1242 | if not missing_ok: |
| 1243 | raise |
| 1244 | |
| 1245 | def rmdir(self): |
| 1246 | """ |
no outgoing calls