1
class Directory(var dir_ : String)
3
if (!dir_.startsWith("/")) {
4
throw new RuntimeException("Invalid directory")
6
dir_ = dir_.replaceAll("/{2,}", "/")
8
def this(serialized : Array[Byte]) = {
9
this(new String(serialized, "UTF-8"))
15
object Test extends Directory("/bab/dkkd//dkkdkd//kdkdk") with App {