ratarmount
ratarmount copied to clipboard
currently, only uncompressed tar can be writable?
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?
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.