Ok, I need to be able to edit comments on files in .rar files from python.
I can already view comments using UnRAR . However, I need to embed the metadata in the files in a way that is stored on several file systems (for example, there are no alternative data streams), so I canβt think of any other alternatives.
rarfile it seems that it can work, but it does not work fine under windows, despite the fact that it requires platform independence (or the .rar format has changed, but this is unlikely, given other utilities for the same period of time). He opens the archive perfectly, but he does not admit that there are comments.
Proactively respond to some of the inevitable comments -
No, I canβt convert archives (there are thousands of them).
There is no file system mode for storing metadata, since I need to support NTFS, XFS, and ext3.
Hidden files will be messy and you need to make sure that they are moved with the corresponding file, which I cannot do.
source share