method move documentation in bbn\File\System
function(string $source, string $dest, bool $overwrite = false, bbn\File\System $fs = NULL)
{
if ($this->check() && $this->exists($source)) {
$name = X::basename($source);
if ($fs) {
if (
$fs->check()
&& $fs->isDir($dest)
&& $this->copy($source, $dest . '/' . $name, $overwrite, $fs)
&& $this->delete($source)
) {
return true;
}
} elseif ($this->isDir($dest)) {
if ($this->exists($dest . '/' . $name) && (!$overwrite || !$this->delete($dest . '/' . $name))) {
return false;
}
return $this->_rename($this->getRealPath($source), $this->getRealPath($dest . '/' . $name));
}
}
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