added a method to confirm that directory