public function getFilesList($strFolder, $storageName = '')
    {
        //build URI
        $strURI = $this->strURIFolder;
        //check whether file is set or not
        if (!$strFolder == '') {
            $strURI .= $strFolder;
        }
        if ($storageName != '') {
            $strURI .= '?storage=' . $storageName;
        }

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        return $json->Files;
    }
public function getFilesList($strFolder, $storageName = '')
    {
        //build URI
        $strURI = $this->strURIFolder;
        //check whether file is set or not
        if (!$strFolder == '') {
            $strURI .= $strFolder;
        }
        if ($storageName != '') {
            $strURI .= '?storage=' . $storageName;
        }

        //sign URI
        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $json = json_decode($responseStream);

        return $json->Files;
    }
public function getFilesList ( $ strFolder , $ storageName = '' ) { //build URI $ strURI = $ this -> strURIFolder ; //check whether file is set or not if ( ! $ strFolder == '' ) { $ strURI .= $ strFolder ; } if ( $ storageName != '' ) { $ strURI .= '?storage=' . $ storageName ; } //sign URI $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; return $ json -> Files ; }
Retrives the list of files and folders under the specified folder.
Use empty string to specify root folder.

@param string $strFolder The name of folder.
@param string $storageName The name of storage.

@return array
Retrives the list of files and folders under the specified folder . Use empty string to specify root folder .