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;
    }
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;
    }
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 ; }
Is this path subdir of given path?

@param  string $parent Given path to detect.

@return  boolean  Is subdir or not.

@since  2.0
Is this path subdir of given path?