ZIP_ADD_DIR(3)
β¨ zip_add_dir β bestie's guide to the obsolete directory-adding era π
okay so real talk, you're looking at zip_add_dir from the libzip library functions manual, and it's giving "vintage, but not in the cute thrifted way." It's literally the obsolete interface for adding a directory to a zip archive. We love her, we respect her, but she's retired. π
πΈ NAME πΈ
zip_add_dir β add directory to zip archive (obsolete interface)
π LIBRARY π
libzip (-lzip) β that's the one you link against, no cap.
π¦ SYNOPSIS π¦
#include <zip.h>
zip_int64_t
zip_add_dir(zip_t *archive, const char *name);
Look at her. Two args, one return type. Simple. Iconic. Deprecated. π
π DESCRIPTION π
So here's the tea: zip_add_dir() is the obsolete version of zip_dir_add(3). Same energy, older era.
It's exactly the same as calling zip_dir_add(3) with an empty flags argument. That's it. That's the whole vibe. No extra seasoning, no hidden tricks β just the legacy wrapper doing legacy wrapper things. π«Ά
ngl bestie, if you're writing new code, you should be using zip_dir_add(3). This one is here for the archives (pun fully intended) and for codebases that haven't gotten the memo yet. π
π SEE ALSO π
libzip(3)β the whole library, the mothership, the main characterzip_dir_add(3)β the glow-up version, the one you actually want
β HISTORY β
The lore, chronologically, because we love a timeline:
zip_add_dir()was added in libzip 0.8. Baby's first appearance. πΌ- In libzip 0.10 the return type was changed from
inttozip_int64_t. A lil glow-up, as a treat. - It was deprecated in libzip 0.11 β use
zip_dir_add()instead. And that's the part where we say our goodbyes. π
π AUTHORS π
The legends themselves:
- Dieter Baron
<dillo@nih.at> - Thomas Klausner
<wiz@gatalith.at>
and that's the whole page, bestie β¨
This one shipped as part of the Debian build, dated December 18, 2017 β so yeah, she's been sitting in the manpage collection looking cute and being deprecated for a minute. Old but gold. Periodt. π πΈπ¦
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2006-2017 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms