Adde directory functions to file.h