method rename documentation in bbn\File\System2

function(string $file, $name, bool $overwrite = false) { if ( $this->exists($file) && (strpos($name, '/') === false) ){ $path = $this->getRealPath(dirname($file)); if ( $this->_exists($path.'/'.$name) && ( !$overwrite || !$this->_delete($path.'/'.$name)) ){ return false; } return $this->_rename($path.'/'.basename($file), $path.'/'.$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.