mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 08:04:05 +02:00
Flextype Core: Entries - new method copy() - added.
This commit is contained in:
@@ -355,6 +355,19 @@ class Entries
|
||||
return Filesystem::delete(PATH['entries'] . '/' . $entry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy entry(s)
|
||||
*
|
||||
* @param string $entry Entry
|
||||
* @param string $new_entry New entry
|
||||
* @param bool $recursive Recursive copy entries.
|
||||
* @return bool True on success, false on failure.
|
||||
*/
|
||||
public static function copy(string $entry, string $new_entry, bool $recursive = false) : bool
|
||||
{
|
||||
return Filesystem::copy($entry, $new_entry, $recursive);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether entry exists.
|
||||
*
|
||||
|
Reference in New Issue
Block a user