I have to add a method to my hdf5 implementation which checks if a directory exists.