process content files in directors; add root_path