Added move example to readme

This commit is contained in:
David Wakelin 2023-02-01 11:19:59 +00:00
parent c52d22a70e
commit 6bc100cf90

View file

@ -32,6 +32,9 @@ $file2url = $file2->getSignedURL("2 hours");
// Make a copy
$file3 = $file2->copy('remote-file-3.txt');
// Move or rename a file
$file2->move('new-filename.txt')
// Make a file public and get the URL
$file3->makePublic();
$file3url = $file3->getURL();