def _list_directories_and_files(self, share_name, directory_name=None, <EOL>marker=None, max_results=None, timeout=None):
_validate_not_none('<STR_LIT>', share_name)<EOL>request = HTTPRequest()<EOL>request.method = '<STR_LIT:GET>'<EOL>request.host = self._get_host()<EOL>request.path = _get_path(share_name, directory_name)<EOL>request.query = [<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT:list>'),<EOL>('<STR_LIT>', _to_str(marker)),<EOL>('<STR_LIT>', _int_to_str(max_results)),<EOL>('<STR_LIT>', _int_to_str(timeout)),<EOL>]<EOL>response = self._perform_request(request)<EOL>return _convert_xml_to_directories_and_files(response)<EOL>
Returns a list of the directories and files under the specified share.

:param str share_name:
    Name of existing share.
:param str directory_name:
    The path to the directory.
:param str marker:
    A string value that identifies the portion of the list
    to be returned with the next list operation. The operation returns
    a next_marker value within the response body if the list returned was
    not complete. The marker value may then be used in a subsequent
    call to request the next set of list items. The marker value is
    opaque to the client.
:param int max_results:
    Specifies the maximum number of files to return,
    including all directory elements. If the request does not specify
    max_results or specifies a value greater than 5,000, the server will
    return up to 5,000 items. Setting max_results to a value less than
    or equal to zero results in error response code 400 (Bad Request).
:param int timeout:
    The timeout parameter is expressed in seconds.