protected function ensureDestinationPath(array $pathParts, CollectionBuilder $stack)
    {
        $path = $this->destination;
        while ($folder = array_shift($pathParts)) {
            $path .= '/' . $folder;
            if (!file_exists($path)) {
                $stack->mkdir($path);
            }
        }
        return $this;
    }