idNextcloud = $UserId; $this->myDb = $myDb; try{ $this->storage = $rootFolder->getUserFolder($this->idNextcloud); }catch(\OC\User\NoUserException $e){ } // Run once a 10 seconds $this->setInterval(10); } protected function run($arguments) { $this->myDb->insertClient($this->idNextcloud); // $current_config = json_decode($this->myDb->getConfiguration($this->idNextcloud)); // $clean_folder = html_entity_decode($current_config[0]->path).'/DOCS/'; // try { // $this->storage->newFolder($_clean_folder); // } catch(\OCP\Files\NotPermittedException $e) { } // $this->storage->newFile($clean_folder.'test.txt'); // $file = $this->storage->get($ff); // $file->putContent('Hello World !'); } }