<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>Scala</anon>
    <anon>memo</anon>
  </categories>
  <description>Javaを知らないのでもっと良い方法があるのかもしれませんが、File.listFilesメソッドで指定ディレクトリの中にあるファイル、ディレクトリの一覧が取得できるそうです。指定ディレクトリの中身を漁るだけなら一行で書けました。 import java.io._ def ls1(dir: String) = { new File(dir).listFiles.foreach(println) } ディレクトリ以下も見ていくなら: def ls2(dir: String) : Unit = { new File(dir).listFiles.map { case f if f.isDirect…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20100916%2F1284625639&quot; title=&quot;Scalaでls(ディレクトリ内のファイルを取得する) - 閑古鳥&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-09-16 17:27:19</published>
  <title>Scalaでls(ディレクトリ内のファイルを取得する)</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20100916/1284625639</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
