Exemplo n.º 1
0
 public File createFile(string name)
 {
     if (!isDir())
     {
         throw IOErr.make("Not a directory: " + this).val;
     }
     return(this.plus(FanStr.toUri(name)).create());
 }
Exemplo n.º 2
0
 public File createDir(string name)
 {
     if (!isDir())
     {
         throw IOErr.make("Not a directory: " + this).val;
     }
     if (!name.EndsWith("/"))
     {
         name = name + "/";
     }
     return(this.plus(FanStr.toUri(name)).create());
 }