added user interface functino to get the path of a directory