svenstaro / miniserve

🌟 For when you really just want to serve some files over HTTP right now!
MIT License
5.95k stars 289 forks source link

Archive creation fails if there is a broken symlink #1441

Open greenmaid opened 2 months ago

greenmaid commented 2 months ago

If there is a broken symlink somewhere in the file tree, archive creation fails and produced file (.tar.gz or .zip) is invalid.

Wed, 10 Jul 2024 13:01:38 +0000 [ERROR] Error during archive creation: ArchiveCreationError("tarball", IoError("Failed to append the content of /tmp/truc/ to the TAR archive", Os { code: 2, kind: NotFound, message: "No such file or directory" }))
Wed, 10 Jul 2024 13:09:23 +0000 [ERROR] Error during archive creation: ArchiveCreationError("zip", ArchiveCreationError("Failed to create the ZIP archive", IoError("Could not get file metadata", Os { code: 2, kind: NotFound, message: "No such file or directory" })))