Many ways to do this: for, while, recursion. Choose your poison. You could ceate a method in your Directory class which returns a boolean indicating it is the root directory, then loop up until this...