code: def listdir(*paths, glob=None):
      '''
      List the (optionally glob filtered) full paths from a dir.
  
      Args:
          *paths ([str,...]): A list of path elements
          glob (str): An optional fnmatch glob str
      '''
      path = genpath(*paths)
  
      names = os.listdir(path)
      if glob is not None:
          names = fnmatch.filter(names, glob)
  
      retn = [os.path.join(path, name) for name in names]
      return retf listdir(*paths, glob=None):
      '''
      List the (optionally glob filtered) full paths from a dir.
  
      Args:
          *paths ([str,...]): A list of path elements
          glob (str): An optional fnmatch glob str
      '''
      path = genpath(*paths)
  
      names = os.listdir(path)
      if glob is not None:
          names = fnmatch.filter(names, glob)
  
      retn = [os.path.join(path, name) for name in names]
      return retn
docs: List the (optionally glob filtered) full paths from a dir.
  
      Args:
          *paths ([str,...]): A list of path elements
          glob (str): An optional fnmatch glob str