nested inside file_to_dir