/** * list files in a container starting from the url * @param type $url * @return boolean */ public function viewBlobs($url) { try { $dir = $this->getContainer($url); } catch (Exception $ex) { echo $ex->getMessage(); } try { return parent::listContainer($dir); } catch (ServiceException $e) { // Handle exception based on error codes and messages. // Error codes and messages are here: // http://msdn.microsoft.com/it-it/library/windowsazure/dd179439.aspx $code = $e->getCode(); $error_message = $e->getMessage(); echo $code . ": " . $error_message . "<br />"; return false; } }
/** * List files and directories inside the specified container * @param string $dir the container * @return array */ public function scandir($dir) { return parent::listContainer($dir); }