docstr: Return the files or folders in the current folder.
  
  path - path to the folder
  flags - FLAG_ENABLED_ONLY to only return enabled files or folders
          with enabled files. FLAG_FOLDERS to return folders instead
          of files. FLAG_RECURSE to do all subfolders.
docstr_tok: ["Return","the","files","or","folders","in","the","current","folder",".","path","-","path","to","the","folder","flags","-","FLAG_ENABLED_ONLY","to","only","return","enabled","files","or","folders","with","enabled","files",".","FLAG_FOLDERS","to","return","folders","instead","of","files",".","FLAG_RECURSE","to","do","all","subfolders","."]
code: def get_folder(self, path, flags=0):
      """Return the files or folders in the current folder.
  
      path - path to the folder
      flags - FLAG_ENABLED_ONLY to only return enabled files or folders
              with enabled files. FLAG_FOLDERS to return folders instead
              of files. FLAG_RECURSE to do all subfolders.
      """
      if path not in self.folder_id_map:
          raise ValueError("Invalid path", path)
      folder_id = self.folder_id_map[path]
      urls = []
      enabled_only = (flags & self.FLAG_ENABLED_ONLY) != 0
      tree_item, cookie = self.GetFirstChild(folder_id)
      while tree_item.IsOk():
          url = self.GetItemData(tree_item).url
          if not enabled_only or url not in self.disabled_urls:
              urls.append(url)
          tree_item, cookie = self.GetNextChild(folder_id, cookie)
      return urls
  
imports: import logging
  import os
  import sys
  import uuid
  from urllib.request import url2pathname
  from urllib.parse import urlparse
  import wx
  import wx.lib.scrolledpanel
  from cellprofiler_core.pipeline import ImageFile
  from cellprofiler_core.preferences import report_progress
label_desc: Use image node_id 31 for calling the PathListCtrl obj's underlying member method code with example usage: obj.get_folder(path, flags) and returns: urls