public File createFile(string name) { if (!isDir()) { throw IOErr.make("Not a directory: " + this).val; } return(this.plus(FanStr.toUri(name)).create()); }
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()); }