#NEWLINE# def file_list( load ) : #NEWLINE# #INDENT# '\n    Return a list of all files on the file server in a specified environment\n    ' #NEWLINE# if ( 'env' in load ) : #NEWLINE# #INDENT# salt . utils . warn_until ( 'Oxygen' , "Parameter 'env' has been detected in the argument list.  This parameter is no longer used and has been replaced by 'saltenv' as of Salt Carbon.  This warning will be removed in Salt Oxygen." ) #NEWLINE# load . pop ( 'env' ) #NEWLINE# #UNINDENT# ret = [ ] #NEWLINE# if ( 'saltenv' not in load ) : #NEWLINE# #INDENT# return ret #NEWLINE# #UNINDENT# saltenv = load [ 'saltenv' ] #NEWLINE# metadata = _init ( ) #NEWLINE# if ( ( not metadata ) or ( saltenv not in metadata ) ) : #NEWLINE# #INDENT# return ret #NEWLINE# #UNINDENT# for buckets in six . itervalues ( _find_files ( metadata [ saltenv ] ) ) : #NEWLINE# #INDENT# files = [ f for f in buckets if ( not fs . is_file_ignored ( __opts__ , f ) ) ] #NEWLINE# ret += _trim_env_off_path ( files , saltenv ) #NEWLINE# #UNINDENT# return ret