Mount zip archives as a regular filesystem.
Lucy McClane 26cfde3e43 doc with toc | 2 år sedan | |
---|---|---|
src | 2 år sedan | |
test | 3 år sedan | |
LICENSE | 3 år sedan | |
Makefile.am | 3 år sedan | |
README.md | 2 år sedan | |
bootstrap | 3 år sedan | |
configure.ac | 2 år sedan |
Mount zip files as a regular filesystem.
The fusezipfs3
was made to help me with zip
archives management which I
use to store some resource files and constantly updated stuff. I didn't want to
use those additional scripts and code to search, extract and insert the file
back any time I wanted to change a single line in a single file that lies in a zip
archive.
This is why the fusezipfs3
was born, and now, my beloved find
and sed
doesn't even
know that input files are archive's entries.
C
Since it is a zip archive there are some limitations. You can't use a regular filesystem operations such as symlinks or any kind of links, change permissions and timestamps. Write operations are singlethreded othrewise it would ruine the entire zip archive every time changes applied simultaniously. Which is why it copies files one by one. Anyways it works fast enough.
The build and installation process is simple as:
./bootstrap
./configure
make
make install
Lets say we would like to create a new zip file and copy something into it.
mkdir zipdir
fusezipfs3 ./zipfile.zip ./zipdir
cp ~/Documents/cat-names.txt ./zipdir
zipfile.zip
was created and mounted into ./zipdir
directory. Then,
using cp
command we coppy our cat-names.txt
into archive. It is simple
as working with a regular filesystem.
libfuse3
itself provides fusermount3
command, just use it:
fusermount3 -u ./zipdir
The -u
option of fusermount3
stands for unmount
.
GPLv2
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Author: g0tsu
Email: g0tsu at dnmx.0rg