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