add confirm add dir function.