How to work with large number of small files: Difference between revisions

From RCSWiki
Jump to navigation Jump to search
Line 5: Line 5:
* to be continued.....
* to be continued.....


<pre>
<syntaxhighligh lang=bash>
# Get a brief help.
$ fuse-zip --help
$ fuse-zip --help
....
....


# Mount the archive as a file system.
$ fuse-zip -r archive.zip mountpoint
$ fuse-zip -r archive.zip mountpoint


# Use the data inside
$ ...
# Unmount the archive.
$ fusermount -u mountpoint
$ fusermount -u mountpoint
</pre>
</syntaxhighlight>


= From Python =
= From Python =

Revision as of 19:46, 28 July 2022

Background

Mounting Zip-arichives with fuse-zip

  • to be continued.....

<syntaxhighligh lang=bash>

  1. Get a brief help.

$ fuse-zip --help ....

  1. Mount the archive as a file system.

$ fuse-zip -r archive.zip mountpoint

  1. Use the data inside

$ ...

  1. Unmount the archive.

$ fusermount -u mountpoint </syntaxhighlight>

From Python

Working with files inside a TAR archive

  • tarfile module:
https://www.askpython.com/python-modules/tarfile-module
https://stackoverflow.com/questions/27220376/python-read-file-within-tar-archive

Links

How-Tos