def file_list(load):
 if ('env' in load):
  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 2016.11.0.  This warning will be removed in Salt Oxygen.")
  load.pop('env')
 ret = []
 if ('saltenv' not in load):
  return ret
 saltenv = load['saltenv']
 metadata = _init()
 if ((not metadata) or (saltenv not in metadata)):
  return ret
 for buckets in six.itervalues(_find_files(metadata[saltenv])):
  files = [f for f in buckets if (not fs.is_file_ignored(__opts__, f))]
  ret += _trim_env_off_path(files, saltenv)
 return ret

def file_list ( load ) : if ( 'env' in load ) : 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 2016.11.0.  This warning will be removed in Salt Oxygen." ) load . pop ( 'env' ) ret = [ ] if ( 'saltenv' not in load ) : return ret saltenv = load [ 'saltenv' ] metadata = _init ( ) if ( ( not metadata ) or ( saltenv not in metadata ) ) : return ret for buckets in six . itervalues ( _find_files ( metadata [ saltenv ] ) ) : files = [ f for f in buckets if ( not fs . is_file_ignored ( __opts__ , f ) ) ] ret += _trim_env_off_path ( files , saltenv ) return ret
return a list of all files on the file server in a specified environment .