test and implementation of the ability to set the dirmode when adding a file