public function __construct($targetDirectory, StorageFactoryInterface $storageFactory = null)
 {
     parent::__construct($storageFactory);
     if (!is_dir($targetDirectory) || !is_writeable($targetDirectory)) {
         throw new \InvalidArgumentException("Targetdirectory {$targetDirectory} is not writable!");
     }
     $this->targetDirectory = realpath($targetDirectory);
 }
 public function __construct(Finder $finder, StorageFactoryInterface $storageFactory = null)
 {
     parent::__construct($storageFactory);
     $this->finder = $finder;
 }