provide the same information for directories and files