ForcedCopy
extends AbstractPlugin
in package
Table of Contents
- $filesystem : FilesystemInterface
- getMethod() : mixed
- handle() : bool
- Copies a file, overwriting any existing files.
- setFilesystem() : mixed
- Set the Filesystem object.
Properties
$filesystem
protected
FilesystemInterface
$filesystem
Methods
getMethod()
public
getMethod() : mixed
Tags
Return values
mixed —handle()
Copies a file, overwriting any existing files.
public
handle(string $path, string $newpath) : bool
Parameters
- $path : string
-
Path to the existing file.
- $newpath : string
-
The new path of the file.
Tags
Return values
bool —True on success, false on failure.
setFilesystem()
Set the Filesystem object.
public
setFilesystem(FilesystemInterface $filesystem) : mixed
Parameters
- $filesystem : FilesystemInterface