Open a file or directory path using prompt instead of UI.