public function reload(): self
    {

        // we don't need to reload if the path isn't loaded in the first place
        if ($this->loaded === false) {
            return $this;
        }

        // reset path- and fileInfo-cache
        clearstatcache(false, $this->raw);

        $this->loaded = false;

        return $this;
    }
public function reload(): self
    {

        // we don't need to reload if the path isn't loaded in the first place
        if ($this->loaded === false) {
            return $this;
        }

        // reset path- and fileInfo-cache
        clearstatcache(false, $this->raw);

        $this->loaded = false;

        return $this;
    }
public function reload ( ) : self { // we don't need to reload if the path isn't loaded in the first place if ( $ this -> loaded === false ) { return $ this ; } // reset path- and fileInfo-cache clearstatcache ( false , $ this -> raw ) ; $ this -> loaded = false ; return $ this ; }
reset internal loaded-state,
resulting in reloading all paths on next access
@return self
reset internal loaded - state resulting in reloading all paths on next access