ArchiveEncoder¶
Constructors¶
create¶
Creates a new corral archive with no entries
root
is filesystem path root for all archive entries.
If root
is set to /home/pony
then when adding an entry:
/home/pony/corral.json
Parameters¶
Returns¶
- ArchiveEncoder ref^ ?
Public Functions¶
add¶
Adds the contents of from
to the Corral archive file to
.
- Directories are recursively added.
- Symlinks are ignored
Parameters¶
- from: FilePath val
Returns¶
- None val ?
write¶
Creates a new archive file at to
. Throws an error if it is unable to
create the archive.
- Removes any existing file at
to
- Resets the archiver after writing
Parameters¶
- to: FilePath val
Returns¶
- None val ?