Work with ZIP Archive as the Real File System Directory


With fuze-zip utility (ZIP Archive mounter based on FUSE) we can mount ZIP Archive file and work on it as real directories.

Installing fuze-zip (Ubuntu Linux)

$ sudo apt-get install fuse-zip

Mounting ZIP archive file at the MountPoint
Usage: fuse-zip <zip-file> <mountpoint>

$ mkdir /home/divyen/zipmount
$ fuze-zip /home/divyen/example.zip /home/divyen/zipmount

Navigate to the mount point directory and work on the ZIP archive as real directory.

$ cd /home/divyen/zipmount/example
$ ls
file1
$ touch file2
$ echo "file2 content" &gt;&gt; file2
$ ls
file1  file2

Unmount and save changes to the original ZIP archive file.

$ cd /home/divyen
$ sudo umount /home/divyen/zipmount

List the content of the example.zip. New File “file2” is added to the ZIP archive.

$ unzip -l example.zip
Archive:  example.zip
 Length      Date     Time    Name
---------  ---------- -----   ----
  0  	   2011-01-07 16:11   example/
 11  	   2011-01-07 16:11   example/file1
 14  	   2011-01-07 16:15   example/file2
---------  -------
 25        3 files
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s