fileopsCopy() публичный Метод

Copies a file or folder to a new location.
public fileopsCopy ( string[optional] $fromPath = null, string $toPath, string[optional] $fromCopyRef = null, string[optional] $locale = null, bool[optional] $sandbox = false ) : array
$fromPath string[optional]
$toPath string Specifies the destination path, including the new name for the file or folder, relative to root.
$fromCopyRef string[optional]
$locale string[optional]
$sandbox bool[optional]
Результат array
Пример #1
0
 /**
  * Tests Dropbox->fileopsCopy()
  */
 public function testFileopsCopy()
 {
     $response = $this->dropbox->fileopsCopy(BASE_PATH . 'image.png', BASE_PATH . 'copy.png');
     $this->isFile($response);
     $this->dropbox->fileopsDelete(BASE_PATH . 'copy.png');
 }