protected function setExportTmpAndLogSettings()
    {
        $this->setExportFolderPath(
            $this->directory->getPath(DirectoryList::TMP) . DS . 'shopgate' . DS . $this->getShopNumber()
        );
        $this->createFolderIfNotExist($this->getExportFolderPath());

        $this->setLogFolderPath(
            $this->directory->getPath(DirectoryList::LOG) . DS . 'shopgate' . DS . $this->getShopNumber()
        );
        $this->createFolderIfNotExist($this->getLogFolderPath());

        $this->setCacheFolderPath(
            $this->directory->getPath(DirectoryList::TMP) . DS . 'shopgate' . DS . $this->getShopNumber()
        );
        $this->createFolderIfNotExist($this->getCacheFolderPath());
    }
protected function setExportTmpAndLogSettings()
    {
        $this->setExportFolderPath(
            $this->directory->getPath(DirectoryList::TMP) . DS . 'shopgate' . DS . $this->getShopNumber()
        );
        $this->createFolderIfNotExist($this->getExportFolderPath());

        $this->setLogFolderPath(
            $this->directory->getPath(DirectoryList::LOG) . DS . 'shopgate' . DS . $this->getShopNumber()
        );
        $this->createFolderIfNotExist($this->getLogFolderPath());

        $this->setCacheFolderPath(
            $this->directory->getPath(DirectoryList::TMP) . DS . 'shopgate' . DS . $this->getShopNumber()
        );
        $this->createFolderIfNotExist($this->getCacheFolderPath());
    }
protected function setExportTmpAndLogSettings ( ) { $ this -> setExportFolderPath ( $ this -> directory -> getPath ( DirectoryList :: TMP ) . DS . 'shopgate' . DS . $ this -> getShopNumber ( ) ) ; $ this -> createFolderIfNotExist ( $ this -> getExportFolderPath ( ) ) ; $ this -> setLogFolderPath ( $ this -> directory -> getPath ( DirectoryList :: LOG ) . DS . 'shopgate' . DS . $ this -> getShopNumber ( ) ) ; $ this -> createFolderIfNotExist ( $ this -> getLogFolderPath ( ) ) ; $ this -> setCacheFolderPath ( $ this -> directory -> getPath ( DirectoryList :: TMP ) . DS . 'shopgate' . DS . $ this -> getShopNumber ( ) ) ; $ this -> createFolderIfNotExist ( $ this -> getCacheFolderPath ( ) ) ; }
Setup export, log and tmp folder and check if need to create them

@throws \Magento\Framework\Exception\FileSystemException
Setup export log and tmp folder and check if need to create them