Open jeremyBanks opened 13 years ago
{ b"": b"directory",
b"foo": { b"": "file",
b"data": b"bar\n",
b"permissions": 0644 } }
bencoding is actually pretty suitable for this. Maybe name it private-bencoding
.
Filenames are text, so I guess I'll define that they be stored in UTF-8, while their contents are the raw binary.
bencoding is actually pretty suitable for this. Maybe name it
private-bencoding
.
_bencoding
may be more appropriate, by the Python convention.
I see that tars seem to be able to deal with special files. Looking at it, it seems possible to implement that, but it's pretty OS-specific...
If I want to be as portable as possible, maybe I should just add the options "read-only" and "executable" and be done with it.
bencoding something like
might be useful as an private bijective encoding for testing.