parameters: (path, flt=None)
return_statement: return file_list
docstring: Return a list of all files in a given path. flt can be used to filter
      any unwanted files.
docstring_summary: Return a list of all files in a given path. flt can be used to filter
      any unwanted files.
docstring_tokens: Return a list of all files in a given path . flt can be used to filter any unwanted files .
function: def walk(path, flt=None):
      """Return a list of all files in a given path. flt can be used to filter
      any unwanted files."""
      def always_true(_):
          return True
  
      if flt is None:
          flt = always_true
  
      file_list = []
      for root, _, files in os.walk(path):
          file_list.extend([os.path.join(root, f) for f in files if not flt(os.path.join(root, f))])
      return file_list
function_tokens: def walk ( path , flt = None ) : def always_true ( _ ) : return True if flt is None : flt = always_true file_list = [ ] for root , _ , files in os . walk ( path ) : file_list . extend ( [ os . path . join ( root , f ) for f in files if not flt ( os . path . join ( root , f ) ) ] ) return file_list