add directories to file_map