implement operations related to DirEntry