Documentation

ForcedCopy extends AbstractPlugin
in package

Table of Contents

Properties

$filesystem  : FilesystemInterface

Methods

getMethod()  : string
Get the method name.
handle()  : bool
Copies a file, overwriting any existing files.
setFilesystem()  : mixed
Set the Filesystem object.

Properties

Methods

getMethod()

Get the method name.

public getMethod() : string
Tags
inheritdoc
Return values
string

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
throws
FileExistsException
throws
FileNotFoundException

Thrown if $path does not exist.

Return values
bool

True on success, false on failure.


        
On this page

Search results