original_docstring: 
          Return a dict containing the file lists for files and dirs
          
docstring: Return a dict containing the file lists for files and dirs
docstring_tokens: Return a dict containing the file lists for files and dirs
code: def _file_lists(self, load, form):
          '''
          Return a dict containing the file lists for files and dirs
          '''
          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')
  
          if not os.path.isdir(self.file_list_cachedir):
              try:
                  os.makedirs(self.file_list_cachedir)
              except os.error:
                  log.error(
                      'Unable to make cachedir {0}'.format(
                          self.file_list_cachedir
                      )
                  )
                  return []
          list_cache = salt.utils.path_join(
              self.file_list_cachedir,
              '{0}.p'.format(load['saltenv'].replace(os.path.sep, '_|-'))
          )
          w_lock = salt.utils.path_join(
              self.file_list_cachedir,
              '.{0}.w'.format(load['saltenv'].replace(os.path.sep, '_|-'))
          )
          cache_match, refresh_cache, save_cache = \
              salt.fileserver.check_file_list_cache(
                  self.opts, form, list_cache, w_lock
              )
          if cache_match is not None:
              return cache_match
          if refresh_cache:
              ret = {'files': set(), 'symlinks': {}, 'dirs': set()}
              if salt.utils.is_hex(load['saltenv']) \
                      or load['saltenv'] in self.envs():
                  for repo in self.remotes:
                      repo_files, repo_symlinks = repo.file_list(load['saltenv'])
                      ret['files'].update(repo_files)
                      ret['symlinks'].update(repo_symlinks)
                      ret['dirs'].update(repo.dir_list(load['saltenv']))
              ret['files'] = sorted(ret['files'])
              ret['dirs'] = sorted(ret['dirs'])
  
              if save_cache:
                  salt.fileserver.write_file_list_cache(
                      self.opts, ret, list_cache, w_lock
                  )
              # NOTE: symlinks are organized in a dict instead of a list, however
              # the 'symlinks' key will be defined above so it will never get to
              # the default value in the call to ret.get() below.
              return ret.get(form, [])
          # Shouldn't get here, but if we do, this prevents a TypeError
          return {} if form == 'symlinks' else []
code_tokens: def _file_lists ( self , load , form ) : 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' ) if not os . path . isdir ( self . file_list_cachedir ) : try : os . makedirs ( self . file_list_cachedir ) except os . error : log . error ( 'Unable to make cachedir {0}' . format ( self . file_list_cachedir ) ) return [ ] list_cache = salt . utils . path_join ( self . file_list_cachedir , '{0}.p' . format ( load [ 'saltenv' ] . replace ( os . path . sep , '_|-' ) ) ) w_lock = salt . utils . path_join ( self . file_list_cachedir , '.{0}.w' . format ( load [ 'saltenv' ] . replace ( os . path . sep , '_|-' ) ) ) cache_match , refresh_cache , save_cache = salt . fileserver . check_file_list_cache ( self . opts , form , list_cache , w_lock ) if cache_match is not None : return cache_match if refresh_cache : ret = { 'files' : set ( ) , 'symlinks' : { } , 'dirs' : set ( ) } if salt . utils . is_hex ( load [ 'saltenv' ] ) or load [ 'saltenv' ] in self . envs ( ) : for repo in self . remotes : repo_files , repo_symlinks = repo . file_list ( load [ 'saltenv' ] ) ret [ 'files' ] . update ( repo_files ) ret [ 'symlinks' ] . update ( repo_symlinks ) ret [ 'dirs' ] . update ( repo . dir_list ( load [ 'saltenv' ] ) ) ret [ 'files' ] = sorted ( ret [ 'files' ] ) ret [ 'dirs' ] = sorted ( ret [ 'dirs' ] ) if save_cache : salt . fileserver . write_file_list_cache ( self . opts , ret , list_cache , w_lock ) return ret . get ( form , [ ] ) return { } if form == 'symlinks' else [ ]
short_docstring: Return a dict containing the file lists for files and dirs
short_docstring_tokens: Return a dict containing the file lists for files and dirs
comment: '''
          Return a dict containing the file lists for files and dirs
          '''$SEP$# NOTE: symlinks are organized in a dict instead of a list, however$SEP$# the 'symlinks' key will be defined above so it will never get to$SEP$# the default value in the call to ret.get() below.$SEP$# Shouldn't get here, but if we do, this prevents a TypeError