updating path directory