All Downloads are FREE. Search and download functionalities are using the official Maven repository.

izumi.fundamentals.platform.files.FileSearch.scala Maven / Gradle / Ivy

The newest version!
package izumi.fundamentals.platform.files

import java.io.File
import java.nio.file.{Files, Path}
import scala.jdk.CollectionConverters.*

trait FileSearch {
  def walk(directory: Path): Iterator[Path] = {
    Files.walk(directory).iterator().asScala
  }

  def walk(directory: File): Iterator[Path] = {
    walk(directory.toPath)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy