Skip to content

Instantly share code, notes, and snippets.

View ilinandrii's full-sized avatar
🇺🇦
Glory to Ukraine

Andrii Ilin ilinandrii

🇺🇦
Glory to Ukraine
View GitHub Profile
@ilinandrii
ilinandrii / traverse.scala
Created January 25, 2017 09:06
Recursively traverses directory in scala transforming structure to a Nodes
import java.io.File
case class Node(path: String, sub: List[Node])
val root = new File("/")
/**
* /
* /file1.file
* /file2.file