imarc / opus

Multi-framework asset and module packaging for composer
MIT License
11 stars 1 forks source link

Add integrity-level to options. #2

Closed mattsah closed 11 years ago

mattsah commented 11 years ago

When cleanup goes to remove files it currently throws an exception if the file is gone... also when updating, we're just overriding files regardless of changes. I'm proposing to add an integrity-level option which will be medium by default and which people can set to low, medium, or high:

low integrity:

medium:

high:

As part of this, We should look into using the file utils provided by composer which I believe are transactional -- i.e. all operations are queued so checks are done first and operations don't actually perform until after, perhaps with rollback (it's not clear). If this isn't how they operate, we should do our own quick queue option to do things this way.

mattsah commented 11 years ago

I should note that I have all the code for this done (in case someone else was thinking of doing it), I just haven't had time to commit to dev branches and test yet.

mattsah commented 11 years ago

Heavily tested and committed.