Feature/file mode

I need a way to create a directory / file with a given mode because travis-ci uses 775 and 664 as default mode whereas my local system uses 755 and 644. 

This difference breaks some of my tests because they are filesystem dependent and I need to ensure a mode to check it later.

Feedback is highly welcome... :)