plugin = $authPlugin; $this->dataPath = $dataPath; } public function getChildren(): array { $principal = $this->plugin->getCurrentPrincipal(); $username = explode("/", $principal)[1]; $path = $this->dataPath; if (!is_dir($path . '/users/' . $username)) { mkdir($path . '/users/' . $username, 0777 , true); } return [new Directory($path . '/users/' . $username, $username)]; } public function getName(): string { return "Home"; } }