Implemented the directory_to_file function