toStr() public method

public toStr ( ) : string
return string
Beispiel #1
0
 public Fan.Sys.File file(Uri uri, bool check)
 {
     loadFiles();
       if (!uri.isPathAbs())
     throw ArgErr.make("Pod.files Uri must be path abs: " + uri).val;
       if (uri.auth() != null && !uri.toStr().StartsWith(this.uri().toStr()))
     throw ArgErr.make("Invalid base uri `" + uri + "` for `" + this.uri() + "`").val;
       else
     uri = this.uri().plus(uri);
       Fan.Sys.File f = (Fan.Sys.File)m_filesMap[uri];
       if (f != null || !check) return f;
       throw UnresolvedErr.make(uri.toStr()).val;
 }