method cd documentation in bbn\File\System
function(string $path)
{
if ($this->check()) {
while (strpos($path, '../') === 0) {
$tmp = X::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->previous = $this->current;
$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.
© 2011-2025
BBN Solutions