Exemplo n.º 1
0
 /**
  * Upload the contents of a local directory to a remote container, effectively syncing them.
  *
  * @param $path The local path to the directory.
  */
 public function uploadDirectory($path)
 {
     $sync = DirectorySync::factory($path, $this);
     $sync->execute();
 }
Exemplo n.º 2
0
 /**
  * Upload the contents of a local directory to a remote container, effectively syncing them.
  *
  * @param string $path      The local path to the directory.
  * @param string $targetDir The path (or pseudo-directory) that all files will be nested in.
  */
 public function uploadDirectory($path, $targetDir = null)
 {
     $sync = DirectorySync::factory($path, $this, $targetDir);
     $sync->execute();
 }