我有一个包含大量.gz
文件的目录树。我曾经看到过一种挂载它的方法(我想是通过 FUSE),这样我就可以直接在另一个目录下看到所有文件(即解压后的文件)。
我已经搜索了一段时间,它可能确实存在,gvfs
但我不知道如何将它用于此目的;除此之外我没有看到任何例子,gvfsd-archive file.gz mountpoint
这不是我想要的。
只读对我来说就足够了。
答案1
你好,这听起来像你以前可能用过的东西:
https://github.com/cybernoid/archivemount
存档安装。
看起来很容易安装:
Requirements
------------
You will need autoconf, libarchive-dev and libfuse-dev for building
archivemont, as well as GNU make and gcc of course.
Installation
------------
From version 0.6.0 on archivemount uses autoconf, so just do the normal
autoreconf -i
./configure && make && sudo make install
to build archivemount and install it to /usr/local. For building it,
libfuse is needed in version 2.6 or higher, including its headerfiles
of course (on most distributions those can be found in a package named
something like libfuse-dev or so).
并且运行起来非常简单:
Usage
-----
archivemount <options> <archive> <mountpoint>
Options are the normal fuse mount options, nothing special supported yet.
希望这可以帮助。