update path,remove dir/