コード例 #1
0
 function test_delete()
 {
     $retval = CloudFiles::delete('hearing_aids_thumb.png', 'images');
     $this->assertTrue($retval);
 }
コード例 #2
0
 function delete_container()
 {
     $container = $this->getNextParam(null, 'container');
     if (!$container) {
         $this->errorAndExit("Container required");
     }
     $files = CloudFiles::ls($container);
     $this->ProgressBar->start(count($files) + 1);
     foreach ($files as $file) {
         CloudFiles::delete($file, $container);
         $this->ProgressBar->next();
     }
     CloudFiles::deleteContainer($container);
     $this->ProgressBar->next();
     $this->out();
     $this->out("Finished");
 }