#NEWLINE# def file_list( saltenv = 'base' , backend = None , outputter = None ) : #NEWLINE# #INDENT# '\n    Return a list of files from the salt fileserver\n\n    saltenv : base\n        The salt fileserver environment to be listed\n\n    backend\n        Narrow fileserver backends to a subset of the enabled ones. If all\n        passed backends start with a minus sign (``-``), then these backends\n        will be excluded from the enabled backends. However, if there is a mix\n        of backends with and without a minus sign (ex:\n        ``backend=-roots,git``) then the ones starting with a minus sign will\n        be disregarded.\n\n        .. versionadded:: 2015.5.0\n\n    CLI Examples:\n\n    .. code-block:: bash\n\n        salt-run fileserver.file_list\n        salt-run fileserver.file_list saltenv=prod\n        salt-run fileserver.file_list saltenv=dev backend=git\n        salt-run fileserver.file_list base hg,roots\n        salt-run fileserver.file_list -git\n    ' #NEWLINE# fileserver = salt . fileserver . Fileserver ( __opts__ ) #NEWLINE# load = { #NEWLINE# #INDENT# 'saltenv' : saltenv , #NEWLINE# 'fsbackend' : backend , #NEWLINE# #UNINDENT# } #NEWLINE# output = fileserver . file_list ( load = load ) #NEWLINE# if outputter : #NEWLINE# #INDENT# salt . utils . warn_until ( 'Carbon' , "The 'outputter' argument to the fileserver.file_list runner has been deprecated. Please specify an outputter using --out. See the output of 'salt-run -h' for more information." ) #NEWLINE# return { #NEWLINE# #INDENT# 'outputter' : outputter , #NEWLINE# 'data' : fileserver , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return output