- Add fsspec implementation and register it as ratar://.
- Add support for new formats: SquashFS, Git, FAT12, FAT16, FAT32.
- Add support for fsspec backends. Archives and even index files can now be specified via URIs: dropbox://, ftp://, git://, github://, http://, https://, ipfs://, ipns://, s3://, ssh://, sftp://, smb://, webdav://.
- Add support for remote and compressed index files. Ratarmount will automatically look for
index files with .gz and other common extensions and extracts these into
/tmp/
orRATARMOUNT_INDEX_TMPDIR
before using them. MountSource.open
: Addbuffering
argument to enable/disable buffering or set the buffer size.
- Argument to
--gzip-seek-point-spacing
was ignored when using the rapidgzip backend. - Index creation did not work with default arguments with an archive in a read-only location.
- Close sqlite3 dummy connection after querying the SQLite version.
- Avoid resource leaks in case a
MountSource
constructor throws. SQLiteIndex
: Do note store checkMetadata callback as a member to avoid dependency cycles.SQLiteIndex
: Ignore errors when the connection is already closed.SQLiteIndexedTar
: Avoid resource leak when constructor fails.
- Import compiled zip decrypter for 100x speedup for Standard ZIP 2.0 encrypted ZIP files
- Speed up
readdir
and therefore simple use cases such asfind
to iterate all files and folders by 3x. - Avoid reading the whole appended TAR parts into memory for the check has-been-appended-to check.
- Fix block size being ignored when reading everything via
io.BufferedReader
. - Do not use parallelization with possibly huge prefetches for simple file type checks.
- Add
getXdgCacheHome
intoratarmountcore.utils
. SQLiteIndexedTar
: Fill indexFolders argument with sane defaults if not specified.
- Userdata for root file info was wrong in
AutoMountLayer
.
- Fix the missing indentation for the index version check.
- Make
--help
and--version
work even iflibarchive.so
is not installed. - Fix
LibarchiveMountSource
compatibility issues with older libarchive versions. - Fix the exception in
StenciledFile
when seeking before the file start.
- Add libarchive backend and detection support for: grzip, lrzip, lz4, lzip, lzma, lzop, rpm, uuencode, compress, 7zip, ar, cab, deb, xar, cpio, iso, war, cxar.
- Add
--transform
option to map each archive entry path via a regex to some user-specified one. - Upgrade rapidgzip from 0.10 to 0.13 to add zlib support. Other notable features are:
- Window compression for reduced memory usage
- The rapidgzip Python library now also bundles
IndexedBzip2File
fromindexed_bzip2
. - Enable checksum verification by default.
- Support for decompression from non-seekable inputs such as stdin.
- Avoid doubling memory usage during index import and export by streaming the data directly to the output file.
- Remove
indexed_bzip2
dependency in favor ofrapidgzip
, which in the future should support even more formats. - Store backend name into the index and check that the index fits to the current backend /
MountSource
. - Store
isGnuIncremental
flag in the index. - Determine incremental archives from index rows to avoid seeks.
utils.findModuleVersion
: Return version not name if__version__
does not exist.- Apply specified priorities for opening all archives not just gzip.
- The index should not be created for very small archives.
- Root file info userdata was not initialized correctly.
- Index validation did fail for TAR entries with more than 2 metadata blocks.
- Do not check for folder consistency because parent folders get automatically added to the index.
- Move
_createFileInfo
out ofMountSource
class to fix "protected-access" warning. - Joined files (
a.001
,a.002
) did not work because of an accidentally shared list. - Do not check file header for zip, only for the footer, to detect self-extracting archives.
- Return a valid file info and file version count for
/
. - Make the original archive viewable as an older file version when using
AutoMountLayer
. - Resolve symbolic links pointing outside the source folder given to
FolderMountSource
to not break them. - Do not return a valid
FileInfo
for invalid paths such as../..
. - Make
--index-minimum-file-count
work for the TAR backend.
- Add
__enter__
and__exit__
toMountSource
interface. - Properly close opened file objects in mount sources.
- Fix
open
andread
inSubvolumesMountSource
. - Fix that
SQLiteIndexedTar
only heeded the order inprioritizedBackends
whenrapidgzip
andindexed_gzip
are specified instead of specifying only one, which should be prioritized. - Fix detection of self-extracting RAR files.
- Improve the error message when a file cannot be read because of a missing dependency.
- Improve debug message when the index does not yet contain a gzip index.
- Fix faulty seek forward for file opened via
RarMountSource
when whence is notio.SEEK_SET
.
- Skip data offset collection for zip files because it takes too long and is unused.
- Use
rapidgzip
instead ofindexed_gzip
by default. - Do not parallelize gzip on slow drives because
pread
is slower than sequentialread
on those. - Enable profiling output for rapidgzip with -d 2 or greater.
- Do not check for GNU incremental TAR archive after an index has been loaded because
it is only necessary for index creation. Note that this means that
SQLiteIndexedTar.isGnuIncremental
member will remainFalse
when an index has been loaded. - Test for incremental archive after loading the compression index to avoid having to recreate it.
- Fix missing warning for multi-frame requirement of Zstandard archives.
- Fix unnecessary warning about mismatching
gzip-seek-point-spacing
when loading an index for archives without gzip compression. - Change the default value of the
SQLiteIndexedTar
constructor argumentgzipSeekPointSpacing
from 4 MiB tp 16 MiB to make it consistent with the ratarmount CLI option.
- Split off SQLite backend from
SQLiteIndexedTar
intoSQLiteIndex
. - Remove obsolete
SQLiteIndexedTar.isDir
. UsegetFileInfo
instead. - Split up
getFileInfo
method intogetFileInfo
,listDir
, andfileVersions
. - Use XDG_CACHE_HOME according to FreeDesktop as default fallback when the archive folder is not writable.
- Create an SQLite index file for zip archives to speed up metadata lookup.
- Fix issue with folders for mounted zip files not being traversed with find.
AutoMountLayer
now takes arecursionDepth
argument instead ofrecursive
.- Fix handling of paths in zip and rar files that contain
../
. - Add backend prioritization option to
SQLiteIndexedTar
.
- Fix exception when trying to mount a RAR archive containing files without timestamps.
- Fix duplicate mounting of uncompressed TARs inside TARs when using
--recursive
.
- Relax the check for GNU incremental TAR detection because the prefix field might contain binary data.
- Improve performance by factor ~5 and avoid storage requirements for index reading for gzip compressed archives.
- Improve performance by ~40% and avoid storage requirements for index writing for gzip compressed archives.
- Improve performance for indexing uncompressed TARs that have been appended to by only analyzing the new files.
- Fix uncompressed archives having been appended very small files (<10 KiB) were not detected as changed by default.
- Fix problem triggered by combining
--recursive
and-P 0
with a recursive bzip2 archive.
- Recursive mounting of nested uncompressed TARs did skip some files for depth > 2.
- Fix uncaught exception when a folder contains an invalid character.
- Improve performance for gzip files significantly by using a larger buffer.
- Do not use
ParallelXZReader
for single-block xz files to avoid memory issues.
- Fix (the last 1000) files not showing for truncated / incomplete TAR files.
- Add support for GNU incremental TAR file format.
- Extend listDir interface to also return FileInfo objects for each file.
- Improve performance for large Union Mounts by keeping a path cache for read-only mount sources. This way, each FUSE getattr only has to query mount sources known to have the file instead of iterating over all of them.
- Fix file objects returned by
SQLiteIndexedTar
to be thread-safe when reading and seeking. - Improve performance of index creation for uncompressed TARs by batching SQLite index insertions among others.
- Add elapsed time output to progress indicator.
- Improve performance for gzip files significantly by using a larger buffer.
- Fix mounting of TAR fails if there are special characters like
#
in the path. - Fix recursive mounting of simple compressed files (file.bz2) inside TAR.
- Fix file objects being returned by
SQLiteIndexedTar
not being independent from each other because of the shared underlying file object.
- Workaround did test for the wrong libSqlite major version.
- Avoid SQLite error for libsqlite 3.11.0 on Ubuntu 16.04.
- Fix
<file object>.index.sqlite
files being created when opening file objects without specifying a tarFileName and when using writeIndex=True.
- Importing did fail for all Python versions x.y.z where z <= 6.
- Updating files in TAR with implicitly defined folders did not work.
- First experimental version uploaded to PyPI.