copydb(Config::pagetable(), $name); } /** * Copy database folder to a new folder if it doeas not already exsit * * @param string $db name of source page database to copy * @param string $name of the destination database */ public function copydb(string $db, string $name) { $dbdir = self::PAGES_DIR . $db; $newdbdir = self::PAGES_DIR . idclean($name); if(is_dir($dbdir) && !is_dir($newdbdir)) { recurse_copy($dbdir, $newdbdir); } } } ?>