SharpCifs.Smb.SmbFile.IsHidden C# (CSharp) Method

IsHidden() public method

Tests to see if the file this SmbFile represents is marked as hidden.
Tests to see if the file this SmbFile represents is marked as hidden. This method will also return true for shares with names that end with '$' such as IPC$ or C$.
public IsHidden ( ) : bool
return bool
        public virtual bool IsHidden()
        {
            if (_share == null)
            {
                return false;
            }
            if (GetUncPath0().Length == 1)
            {
                if (_share.EndsWith("$"))
                {
                    return true;
                }
                return false;
            }
            Exists();
            return (_attributes & AttrHidden) == AttrHidden;
        }