Fix map_files and map_content in Directory, both functions are not traversing the files in the directory correctly, they should call the function recursively for each file in the directory.
