Files
MicroPythonOS/internal_filesystem/lib
Richard a1478080b1 Clean up existing install before extracting .mpk (#55)
install_mpk() would fail with EEXIST if the destination folder already
existed from a previous (possibly partial) install, or if a dangling
symlink occupied the path (e.g. a dev symlink whose target was removed).

Before extracting, now remove the destination if it is:
- A real directory (via shutil.rmtree)
- A regular file (via os.remove)
- A symlink, including broken ones (via os.remove as a fallback)

This enables clean reinstalls, updates, and recovery from failed
installs.

Co-authored-by: Richard Taylor <RT@MacBookPro.lan>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 07:42:04 +01:00
..
2026-02-10 23:49:28 +01:00
2026-01-26 15:12:01 +01:00
2026-01-26 15:04:32 +01:00
2025-05-22 21:06:02 +02:00
2025-05-19 10:08:43 +02:00
2025-07-02 12:43:01 +02:00
2025-10-29 09:34:54 +01:00
2025-05-20 14:47:19 +02:00
2026-01-26 15:12:01 +01:00
2025-05-20 15:12:30 +02:00
2025-05-19 11:21:54 +02:00
2025-05-19 10:08:43 +02:00
2025-05-19 21:19:01 +02:00