===== ZipFS
Zipfs is a read only file system that mounts a zip file as a NuttX file system through the NuttX VFS interface. This allows users to read files while decompressing them, without requiring additional storage space.
CONFIG
.. code-block:: bash
CONFIG_FS_ZIPFS=y
CONFIG_LIB_ZLIB=y
Example
-
./tools/configure.sh sim:zipfsbuild sim platform with zipfs support. -
makebuild NuttX. -
./nuttxrun NuttX. -
nsh> mount -t hostfs -o /home/<your host name>/work /hostmount host directory to/host. -
nsh> mount -t zipfs -o /host/test.zip /zipmount zip file to/zipfs. -
Use cat/ls command to test.
.. code-block:: bash
nsh> ls /zip
/zip:
a/1
a/2
nsh> cat /zip/a/1
this is zipfs test 1
nsh> cat /zip/a/2
this is zipfs test 2