ratarmount icon indicating copy to clipboard operation
ratarmount copied to clipboard

currently, only uncompressed tar can be writable?

Open BingoKingo opened this issue 1 year ago • 1 comments

I tried, but renaming a file in tar is just duplicate a new one with new name after commit. Can I put the renamed commit-overlay folder along with tar file by default without defining a new folder?

BingoKingo avatar Sep 25 '23 14:09 BingoKingo

Unfortunately, you exactly pinpointed a todo in this feature: https://github.com/mxmlnkn/ratarmount/blob/ea43572dfbac4770a27ef2169f72ff73ee4a4ae9/ratarmount.py#L1536-L1538

And renaming is exactly one of the operations that is difficult. Other operations like modifying an existing file, could theoretically be implemented by simply appending the new file version and leaving the old file version in the TAR, even if that is not exactly space-saving.

Pull requests are welcome. Else, I might take another look in the coming months at using Python's tarfile module instead of GNU tar like the ToDo comment states.

mxmlnkn avatar Sep 25 '23 14:09 mxmlnkn