Skip to content
This repository was archived by the owner on Jan 9, 2018. It is now read-only.

Commit 6a95171

Browse files
committed
fixed path
1 parent 6883902 commit 6a95171

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/DevTools/DevTools.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ private function makeServerCommand(CommandSender $sender, Command $command, $lab
141141
$phar->setSignatureAlgorithm(\Phar::SHA1);
142142
$phar->startBuffering();
143143

144-
$filePath = substr(\pocketmine\PATH, 0, 7) === "phar://" ? \pocketmine\PATH : realpath(\pocketmine\PATH);
144+
$filePath = substr(\pocketmine\PATH, 0, 7) === "phar://" ? \pocketmine\PATH : realpath(\pocketmine\PATH) . "/";
145+
$filePath = ltrim(str_replace("\\", "/", $filePath), "/");
145146
foreach(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($filePath . "src")) as $file){
146147
$path = ltrim(str_replace(array($filePath, "\\"), array("", "/"), $file), "/");
147148
if($path{0} === "." or strpos($path, "/.") !== false or substr($path, 0, 4) !== "src/"){

0 commit comments

Comments
 (0)