phrohdoh / easage

A library that provides programmatic manipulation of BIG archives.
MIT License
9 stars 0 forks source link

Require library users to decide on entry order criteria when packing #15

Closed phrohdoh closed 6 years ago

phrohdoh commented 6 years ago

ab256a14476f7157d4007e97a359d2b605134f96 added a TODO that this ticket covers.

The writer module's pack_directory function will want to take in a settings/options/configuration/etc. struct that contains a EntryOrderCriteria enum variant.

pub struct Settings {
    entry_order_criteria: EntryOrderCriteria,
}

pub enum EntryOrderCriteria {
    Length,
    Path,
}