/**
  * @param $id
  *
  * @return exodFile[]|exodFolder[]
  */
 public function listFolder($id)
 {
     $exodPath = exodPath::getInstance($id);
     $id = rawurlencode($id);
     $this->setRequestType(self::REQ_TYPE_GET);
     $ressource = $this->getExodApp()->getRessource() . '/files/getByPath(\'' . $id . '\')/children';
     $this->setRessource($ressource);
     $response = $this->getResponseJsonDecoded();
     return exodItemFactory::getInstancesFromResponse($response);
 }
 /**
  * @param $id
  *
  * @return exodFile[]|exodFolder[]
  */
 public function listFolder($path)
 {
     $this->setRequestType(self::REQ_TYPE_GET);
     $exodPath = exodPathPublic::getInstance($path);
     $ressource = $this->getExodApp()->getRessource() . 'drive/special/approot:' . $exodPath->getDirname() . ':/children';
     //		$ressource = $this->getExodApp()->getRessource() . 'drive/special/approot:/children';
     //			throw new ilCloudException(-1, $ressource );
     $this->setRessource($ressource);
     $response = $this->getResponseJsonDecoded();
     //var_dump($response ); // FS
     //		exit;
     //		throw new ilCloudException(- 1, print_r($response, true));
     return exodItemFactory::getInstancesFromResponse($response);
 }