is_dir($source)) { return false; } return copy($this->getSourcePath($source), $this->getSourcePath($target)); } } class CopyDirectoryStorage extends StorageNoRecursiveCopy { use \OC\Files\Storage\PolyFill\CopyDirectory; } /** * Class CopyDirectoryTest * * @group DB * * @package Test\Files\Storage */ class CopyDirectoryTest extends Storage { protected function setUp(): void { parent::setUp(); $this->instance = new CopyDirectoryStorage([]); } }