support path truncate