code: def listdir(self, pathobj):
          
          stat = self.stat(pathobj)
  
          if not stat.is_dir:
              raise OSError(20, "Not a directory: %s" % str(pathobj))
  
          return stat.children
docs: Returns a list of immediate sub-directories and files in path