mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-08 19:11:47 +00:00
FormatConverter: beware paths with \ on linux
This commit is contained in:
parent
49bd58a86a
commit
c95951479c
@ -96,7 +96,7 @@ class FormatConverter{
|
|||||||
$this->logger->info("Generating new world");
|
$this->logger->info("Generating new world");
|
||||||
$data = $this->oldProvider->getWorldData();
|
$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)){
|
if(file_exists($convertedOutput)){
|
||||||
$this->logger->info("Found previous conversion attempt, deleting...");
|
$this->logger->info("Found previous conversion attempt, deleting...");
|
||||||
Filesystem::recursiveUnlink($convertedOutput);
|
Filesystem::recursiveUnlink($convertedOutput);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user