FormatConverter: beware paths with \ on linux

This commit is contained in:
Dylan K. Taylor 2020-05-24 14:28:07 +01:00
parent 49bd58a86a
commit c95951479c

View File

@ -96,7 +96,7 @@ class FormatConverter{
$this->logger->info("Generating new world");
$data = $this->oldProvider->getWorldData();
$convertedOutput = rtrim($this->oldProvider->getPath(), "/\\") . "_converted" . DIRECTORY_SEPARATOR;
$convertedOutput = rtrim($this->oldProvider->getPath(), "/" . DIRECTORY_SEPARATOR) . "_converted" . DIRECTORY_SEPARATOR;
if(file_exists($convertedOutput)){
$this->logger->info("Found previous conversion attempt, deleting...");
Filesystem::recursiveUnlink($convertedOutput);