TVServerKodi.Common.ShareInfo.MatchesPath C# (CSharp) Method

MatchesPath() public method

Returns true if this share matches the local path
public MatchesPath ( string path ) : bool
path string
return bool
        public bool MatchesPath(string path)
        {
            if (String.IsNullOrEmpty(path) || !IsFileSystem)
            {
                return false;
            }
            if (path.StartsWith(_path, StringComparison.CurrentCultureIgnoreCase))
            {
                return (path.Length == _path.Length) || (path[_path.Length] == System.IO.Path.DirectorySeparatorChar);
            }
            return false;
        }