Skip to content

Commit

Permalink
Improved responses/support.
Browse files Browse the repository at this point in the history
  • Loading branch information
cubiclesoft committed Apr 23, 2018
1 parent 81ffa34 commit cf5a930
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdks/php/sdk_cloud_storage_server_files.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function GetFolderList($folderid = "0")
else $folders[$item["name"]] = $item; else $folders[$item["name"]] = $item;
} }


return array("success" => true, "folders" => $folders, "files" => $files); return array("success" => true, "id" => $folderid, "folders" => $folders, "files" => $files);
} }


public function GetObjectIDByName($folderid, $name) public function GetObjectIDByName($folderid, $name)
Expand All @@ -139,9 +139,9 @@ public function CreateFolder($folderid, $name)
return $result; return $result;
} }


public function GetTrashList() public function GetTrashList($folderid = false)
{ {
return $this->RunAPI("GET", "trash/list"); return $this->RunAPI("GET", "trash/list" . ($folderid !== false ? "/" . $folderid : ""));
} }


public function GetObjectByID($id) public function GetObjectByID($id)
Expand Down

0 comments on commit cf5a930

Please sign in to comment.