\League\Flysystem\PluginForcedRename

Summary

Methods
Properties
Constants
setFilesystem()
getMethod()
handle()
No public properties found
No constants found
No protected methods found
$filesystem
N/A
No private methods found
No private properties found
N/A

Properties

Methods

getMethod()

getMethod() 

handle()

handle(string  $path, string  $newpath) : boolean

Renames a file, overwriting the destination if it exists.

Parameters

string $path

Path to the existing file.

string $newpath

The new path of the file.

Throws

\League\Flysystem\FileNotFoundException

Thrown if $path does not exist.

\League\Flysystem\FileExistsException

Returns

boolean —

True on success, false on failure.