public function isSubdir($path)
    {
        foreach ($this->storage as $member) {
            if ($member->isSubdirOf($path)) {
                return true;
            }
        }

        return false;
    }
public function isSubdir($path)
    {
        foreach ($this->storage as $member) {
            if ($member->isSubdirOf($path)) {
                return true;
            }
        }

        return false;
    }
public function isSubdir ( $ path ) { foreach ( $ this -> storage as $ member ) { if ( $ member -> isSubdirOf ( $ path ) ) { return true ; } } return false ; }
Is this path a subdir of another path in bag?

When running recursive scan dir, we have to avoid to re scan same dir.

@param  PathLocator $path The path to detect is subdir or not.

@return  boolean  Is subdir or not.

@since  2.0
Is this path a subdir of another path in bag?