only creating file for directory entries