open directory when file does not exist