library/Garp/File/Storage/S3.php
public function getList(): array {
        $this->_verifyPath();

        // strip off preceding slash, add trailing one.
        $path = substr($this->_config['path'], 1) . '/';
        return $this->_getApi()->listObjects([
            'Bucket' => $this->_config['bucket'],
            'Prefix' => $path
        ])->get('Contents');
    }
public function getList(): array {
        $this->_verifyPath();

        // strip off preceding slash, add trailing one.
        $path = substr($this->_config['path'], 1) . '/';
        return $this->_getApi()->listObjects([
            'Bucket' => $this->_config['bucket'],
            'Prefix' => $path
        ])->get('Contents');
    }
public function getList ( ) : array { $ this -> _verifyPath ( ) ; // strip off preceding slash, add trailing one. $ path = substr ( $ this -> _config [ 'path' ] , 1 ) . '/' ; return $ this -> _getApi ( ) -> listObjects ( [ 'Bucket' => $ this -> _config [ 'bucket' ] , 'Prefix' => $ path ] ) -> get ( 'Contents' ) ; }
Lists all files in the upload directory.

@return array
Lists all files in the upload directory .