Beispiel #1
0
 private static function twoKeyBatch($operation, $source_bucket, $key_pairs, $target_bucket)
 {
     if ($target_bucket == null) {
         $target_bucket = $source_bucket;
     }
     $data = array();
     foreach ($key_pairs as $from_key => $to_key) {
         $from = \Qiniu\entry($source_bucket, $from_key);
         $to = \Qiniu\entry($target_bucket, $to_key);
         array_push($data, $operation . '/' . $from . '/' . $to);
     }
     return $data;
 }
Beispiel #2
0
 public static function saveas($op, $bucket, $key)
 {
     return self::pipeCmd(array($op, 'saveas/' . \Qiniu\entry($bucket, $key)));
 }