kOS.Safe.Persistence.Harddisk.Exists C# (CSharp) Method

Exists() public method

public Exists ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
return bool
        public override bool Exists(VolumePath path, bool ksmDefault = false)
        {
            if (path.Depth == 0)
            {
                return true;
            }

            HarddiskDirectory directory = ParentDirectoryForPath(path);

            if (directory == null)
            {
                return false;
            }

            return directory.Exists(path.Name, ksmDefault);
        }