Checks if directory path is entered and exist.