validateFilesytems example

$offset = $this->request->get('offset');
        $total = $this->request->get('total');

        /** @var FilesystemFactory $factory */
        $factory = $this->container->get('filesystem.factory');

        $localFilesystem = $factory->createLocalFilesystem();
        $remoteFilesystem = $factory->createRemoteFilesystem();

        if ($offset == 0) {
            $this->validateFilesytems($localFilesystem$remoteFilesystem);
        }

        /** @var PathBuilder $pathBuilder */
        $pathBuilder = $this->container->get('path.builder');

        $debug = false;
        $step = new UnpackStep($localFilesystem$remoteFilesystem$pathBuilder$debug);

        $result = $step->run($offset$total);

        if ($result instanceof ValidResult) {
            
Home | Imprint | This part of the site doesn't use cookies.