code: def _file_local_list(self, dest):
          '''
          Helper util to return a list of files in a directory
          '''
          if os.path.isdir(dest):
              destdir = dest
          else:
              destdir = os.path.dirname(dest)
  
          filelist = set()
  
          for root, dirs, files in salt.utils.path.os_walk(destdir, followlinks=True):
              for name in files:
                  path = os.path.join(root, name)
                  filelist.add(path)
  
          return filelisf _file_local_list(self, dest):
          '''
          Helper util to return a list of files in a directory
          '''
          if os.path.isdir(dest):
              destdir = dest
          else:
              destdir = os.path.dirname(dest)
  
          filelist = set()
  
          for root, dirs, files in salt.utils.path.os_walk(destdir, followlinks=True):
              for name in files:
                  path = os.path.join(root, name)
                  filelist.add(path)
  
          return filelist
docs: Helper util to return a list of files in a directory