Bag is a stupidly simple archive format. It stores files inside as simple as possible, nothing more.
16-bit big endian
- file path length
UTF-8
- file path
64-bit big endian
- file size
RAW
- file data
-c
Create -s
Scan -x
Extract
-f <filename>
Location of archive
bag -c [options] [-C <dir> | <dir>]
-C <dir>
Change to <dir>
before processing remaining files
<dir>
add these items to archive
bag -s [options] [<pattern>]
<pattern>
If specified, list only entries that match
bag -x [options] [-C <dir> | <dir> | <pattern>]
-C <dir>
Change to <dir>
before processing remaining files
<dir>
extract items from archive to this directory
<pattern>
If specified, extract only entries that match