public function isSubdirOf($parent)
    {
        $self = (string) $this;

        $parent = $this->normalize($parent, true);

        // Path is self
        if ($self == $parent) {
            return false;
        }

        // Path is parent
        if (strpos($parent, $self) === 0) {
            return true;
        }

        return false;
    }