Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 833B

1234567891011121314151617181920212223242526272829
  1. # cfspack
  2. A tool/library to pack files into a CFS blob and unpack a CFS blob into
  3. a directory.
  4. ## Usage
  5. To pack a directory into a CFS blob, run:
  6. cfspack /path/to/directory
  7. The blob is spit to stdout. If there are subdirectories, they will be prefixes
  8. to the filenames under it.
  9. `cfspack` takes an optional second argument, a "fnmatch" pattern. If specified,
  10. only files patching the pattern will be included.
  11. If path is a file, a CFS with a single file will be spit and its name will
  12. exclude the directory part of that filename.
  13. The program errors out if a file name is too long (> 26 bytes) or too big
  14. (> 0x10000 - 0x20 bytes).
  15. To unpack a blob to a directory:
  16. cfsunpack /path/to/dest < blob
  17. If destination exists, files are created alongside existing ones. If a file to
  18. unpack already exists, it is overwritten.