How do I prompt the user to select a file or directory?