/**
 * Move a file to a new location.
 *
 * @param  string $destination The destination path.
 *
 * @return bool Returns TRUE on success or FALSE on failure.
 */
public function move(string $destination): bool

Examples

$filesystem->file('/foo/1.txt')->move('/foo/2.txt');

Getting Started

Methods

Filesystem
File
Directory