VirtualFileSystem.VFS.IsPathValid C# (CSharp) Method

IsPathValid() public static method

判断一个路径是否有效
public static IsPathValid ( String path ) : System.Boolean
path String
return System.Boolean
        public static Boolean IsPathValid(String path)
        {
            if (path.Length == 0)
            {
                return false;
            }
            if (path.ElementAt(0) != '/')
            {
                return false;
            }
            return true;
        }