(directory: ty.Union[ty.AnyStr, utils.PathLike[ty.AnyStr], int], *,
                     chunk_size: int = default_chunk_size,
                     follow_symlinks: bool = False,
                     patterns: match_spec_t[ty.AnyStr] = None,
                     period_special: bool = True,
                     recursive: bool = False
)
return stream.body(), stream.headers()
Returns buffered generator yielding the contents of a directory
	
	Returns a buffered generator which encodes a directory as
	:mimetype:`multipart/form-data` with the corresponding headers.
	
	For the meaning of these parameters see the description of
	:class:`DirectoryStream`.
Returns buffered generator yielding the contents of a directory
	
	Returns a buffered generator which encodes a directory as
	:mimetype:`multipart/form-data` with the corresponding headers.
	
	For the meaning of these parameters see the description of
	:class:`DirectoryStream`.
Returns buffered generator yielding the contents of a directory Returns a buffered generator which encodes a directory as : mimetype : multipart / form - data with the corresponding headers . For the meaning of these parameters see the description of : class : DirectoryStream .
def stream_directory(directory: ty.Union[ty.AnyStr, utils.PathLike[ty.AnyStr], int], *,
                     chunk_size: int = default_chunk_size,
                     follow_symlinks: bool = False,
                     patterns: match_spec_t[ty.AnyStr] = None,
                     period_special: bool = True,
                     recursive: bool = False
) -> ty.Tuple[gen_bytes_t, ty.Dict[str, str]]:
	"""Returns buffered generator yielding the contents of a directory
	
	Returns a buffered generator which encodes a directory as
	:mimetype:`multipart/form-data` with the corresponding headers.
	
	For the meaning of these parameters see the description of
	:class:`DirectoryStream`.
	"""
	stream = DirectoryStream(directory, chunk_size=chunk_size,
	                         follow_symlinks=follow_symlinks,
	                         period_special=period_special,
	                         patterns=patterns, recursive=recursive)
	
	return stream.body(), stream.headers()
def stream_directory ( directory : ty . Union [ ty . AnyStr , utils . PathLike [ ty . AnyStr ] , int ] , * , chunk_size : int = default_chunk_size , follow_symlinks : bool = False , patterns : match_spec_t [ ty . AnyStr ] = None , period_special : bool = True , recursive : bool = False ) -> ty . Tuple [ gen_bytes_t , ty . Dict [ str , str ] ] : stream = DirectoryStream ( directory , chunk_size = chunk_size , follow_symlinks = follow_symlinks , period_special = period_special , patterns = patterns , recursive = recursive ) return stream . body ( ) , stream . headers ( )