ForcedRename
extends AbstractPlugin
in package
Table of Contents
Properties
Methods
- getMethod() : string
- Get the method name.
- handle() : bool
- Renames a file, overwriting the destination if it exists.
- setFilesystem() : mixed
- Set the Filesystem object.
Properties
$filesystem
protected
FilesystemInterface
$filesystem
Methods
getMethod()
Get the method name.
public
getMethod() : string
Tags
Return values
stringhandle()
Renames a file, overwriting the destination if it exists.
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