Archive creation fails if there is a broken symlink
Author: greenmaidCreated Jul 10, 2024Updated Mar 5, 2026
If there is a broken symlink somewhere in the file tree, archive creation fails and produced file (.tar.gz or .zip) is invalid.
- with
--enable-tar-gz
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" }))- with
--enable-zip
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" })))Source: svenstaro/miniserve