so some of my work requires us to do some complex ...
# announcements
g
so some of my work requires us to do some complex calculations on file system structures. I'm wondering if anybody knows of a DSL that would allow me to expressively create a folder and a series of sub directories under it. The thing I was thinking of implementing was
Copy code
val root = folder("whatever") {
  folder("subfolder"){
    file("something.txt"){
       length = 30 //stubs `file.length()` and `file.getAttributes("length")` to return 30
    }
  }
  file("rootFile"){
    //...
  }
}
I can of course write it, but I'm wondering if anybody knows if its already been done