mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
DiskResourceProvider: do not trim backslashes from path when we're not on Windows
This commit is contained in:
@@ -43,7 +43,7 @@ class DiskResourceProvider implements ResourceProvider{
|
|||||||
private $file;
|
private $file;
|
||||||
|
|
||||||
public function __construct(string $path){
|
public function __construct(string $path){
|
||||||
$this->file = rtrim($path, "/\\") . "/";
|
$this->file = rtrim(str_replace(DIRECTORY_SEPARATOR, "/", $path), "/") . "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user