Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个要从服务器访问的文件目录,但在我的代码中,我没有要引用的特定文件,只是想获取父目录文件夹名称。
例如:www.website.com/path
我尝试使用 URL("file", "website.com", "path") 来检索目录,但似乎它不起作用,并且也没有抛出 MalformedURLException。
我可以通过这种方式访问文件夹吗?还是有其他方法可以解决?