Removes file, ignoring any error.
(path)
| 73 | |
| 74 | |
| 75 | def remove(path): |
| 76 | ''' |
| 77 | Removes file, ignoring any error. |
| 78 | ''' |
| 79 | log(f'Removing: {path}') |
| 80 | try: |
| 81 | os.remove(path) |
| 82 | except Exception as e: |
| 83 | log(f'Failed to remove {path}: {e}') |
| 84 | |
| 85 | |
| 86 | def readlink(path): |