is_dir($path1)) { return false; } return copy($this->getSourcePath($path1), $this->getSourcePath($path2)); } } 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([]); } }