for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Druc\Flysystem\IncrementalNaming;
use League\Flysystem\FileExistsException;
use League\Flysystem\Plugin\AbstractPlugin;
class IncrementedCopy extends AbstractPlugin
{
use IncrementsPath;
/**
* @inheritdoc
*/
public function getMethod()
return 'incrementedCopy';
}
* @param $path
* @param $newpath
* @return bool
* @throws FileExistsException
* @throws \League\Flysystem\FileNotFoundException
public function handle($path, $newpath)
return $this->filesystem->copy($path, $this->getIncrementedPath($newpath));