1
0
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:
Awilum
2019-02-07 17:59:34 +03:00
parent 45b25cb10d
commit 6299b311bb

View File

@@ -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.
*