menu
#5777654 Target directory path does not exist or is not a directory

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: None
Report date: 2022-01-15 00:37:21 +0000 UTC
Server uptime: 0 days 7 hours 57 minutes 4 seconds

System Information

PHP version: 8.0.13
Operating system: linux
System banner: Linux ip135-148-6-172 4.15.0-156-generic #163-Ubuntu SMP Thu Aug 19 23:31:58 UTC 2021 x86_64

Error information

Message: Target directory path does not exist or is not a directory
File: pmsrc/src/utils/Filesystem
Line: #240
Error level: RuntimeException
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
	 *
* This is necessary because file_put_contents() destroys the data currently in the file if it fails to write the
* new contents.
*
* @param resource|null $context Context to pass to file_put_contents
*/
public static function safeFilePutContents(string $fileName, string $contents, int $flags = 0, $context = null) : void{
$directory = dirname($fileName);
if(!is_dir($directory)){
throw new \RuntimeException("Target directory path does not exist or is not a directory");
}
if(is_dir($fileName)){
throw new \RuntimeException("Target file path already exists and is not a file");
}

$counter = 0;
do{
//we don't care about overwriting any preexisting tmpfile but we can't write if a directory is already here
$temporaryFileName = $fileName . ".$counter.tmp";
$counter++;
#0 pmsrc/src/world/format/io/data/BedrockWorldData(169): pocketmine\utils\Filesystem::safeFilePutContents(string[68] /home/minecraft/multicraft/servers/server2108/worlds/world/level.dat, string[528] ..............DayCycleStopTime.......Difficulty.......ForceGameType....GameType.)
#1 pmsrc/src/world/World(1153): pocketmine\world\format\io\data\BedrockWorldData->save()
#2 pmsrc/src/command/defaults/SaveCommand(56): pocketmine\world\World->save(true)
#3 pmsrc/src/command/SimpleCommandMap(220): pocketmine\command\defaults\SaveCommand->execute(object pocketmine\console\ConsoleCommandSender#24864, string[8] save-all, array[0])
#4 pmsrc/src/Server(1406): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\console\ConsoleCommandSender#24864, string[8] save-all)
#5 pmsrc/src/Server(1038): pocketmine\Server->dispatchCommand(object pocketmine\console\ConsoleCommandSender#24864, string[8] save-all)
#6 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#7 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#8 pmsrc/src/Server(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1642207041.136)
#9 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#10 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[46] /home/minecraft/multicraft/servers/server2108/, string[54] /home/minecraft/multicraft/servers/server2108/plugins/)
#11 pmsrc/src/PocketMine(326): pocketmine\server()
#12 pmsrc(11): require(string[72] phar:///home/minecraft/multicraft/jar/1.18-4.0.0.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show