azure-storage-file/src/File/FileRestProxy.php
public function listDirectoriesAndFiles(
        $share,
        $path = '',
        ListDirectoriesAndFilesOptions $options = null
    ) {
        return $this->listDirectoriesAndFilesAsync($share, $path, $options)->wait();
    }
public function listDirectoriesAndFiles(
        $share,
        $path = '',
        ListDirectoriesAndFilesOptions $options = null
    ) {
        return $this->listDirectoriesAndFilesAsync($share, $path, $options)->wait();
    }
List directories and files under specified path.

@param  string                              $share   The share that
contains all the
files and directories.
@param  string                              $path    The path to be listed.
@param  ListDirectoriesAndFilesOptions|null $options Optional parameters.

@return ListDirectoriesAndFilesResult

@see https://docs.microsoft.com/en-us/rest/api/storageservices/list-directories-and-files