method cd documentation in bbn\File\System2

function(string $path) { if ($this->check()) { while ( strpos($path, '../') === 0 ){ $tmp = dirname($this->current); if ( $tmp !== $this->current ){ $path = substr($path, 3); } else { break; } } if ( isset($tmp) ){ $path = $tmp.$path; } if (($p = $this->getRealPath($path)) && \is_dir($p)) { $this->current = $this->cleanPath($path); return true; } } return false; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.