public function testSaveAndDelete()
 {
     if (!$this->fileManager) {
         $this->markTestSkipped('S3 config missing.');
     }
     $file = $this->fileManager->getFile('Public/geek_tasks.png');
     $this->assertInstanceOf('AnyContent\\Client\\File', $file);
     $binary = $this->fileManager->getBinary($file);
     $this->fileManager->saveFile('norbert.jpg', $binary);
     $file = $this->fileManager->getFile('norbert.jpg');
     $this->assertInstanceOf('AnyContent\\Client\\File', $file);
     $binary = $this->fileManager->getBinary($file);
     $this->assertEquals(67098, strlen($binary));
     $this->fileManager->deleteFile('norbert.jpg');
     $file = $this->fileManager->getFile('norbert.jpg');
     $this->assertFalse($file);
 }
 protected function listFiles($path)
 {
     $this->connect();
     $items = parent::listFiles($path);
     if (!$this->isPublicPath($path)) {
         foreach ($items as &$item) {
             unset($item['url']);
         }
     }
     return $items;
 }