dimanche 30 juillet 2017

Creating non-writable directory for unit tests

In order to unit-test a component which checks whether a directory is writable I would need to create a directory which isn't.

How can this be achieved since it is not predictable which permission rights the user to run the test has.

Aucun commentaire:

Enregistrer un commentaire