Fan.Sys.Uri.isPathAbs C# (CSharp) Method

isPathAbs() public method

public isPathAbs ( ) : bool
return bool
        public bool isPathAbs()
        {
            if (m_pathStr == null || m_pathStr.Length == 0)
            return false;
              else
            return m_pathStr[0] == '/';
        }

Usage Example

Example #1
0
 //////////////////////////////////////////////////////////////////////////
 // Find Files
 //////////////////////////////////////////////////////////////////////////
 public override File findFile(Uri uri, bool check)
 {
     if (uri.isPathAbs()) throw ArgErr.make("Uri must be relative: " + uri).val;
       File f = m_homeDir.plus(uri, false);
       if (f.exists()) return f;
       if (!check) return null;
       throw UnresolvedErr.make("File not found in Env: " + uri).val;
 }
All Usage Examples Of Fan.Sys.Uri::isPathAbs