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 もスローされません。
この方法でフォルダにアクセスできますか? またはそれについて行く別の方法はありますか?