              retval["browser"] = ["save"]
          elif action == actions.DirOrFileFullPaths:
              retval["browser"] = ["folder", "load"]
          elif action == actions.ContextFullPaths and action_option:
              retval["browser"] = ["context"]
              retval["command"] = command
              retval["action_option"] = action_option
 
</s> remove             filt_files = [files] if isinstance(files, str) else files
            filt_files = [] if filt_files is None else filt_files
 </s> add             if isinstance(files, list) and len(files) == 1 and os.path.isdir(files[0]):
                # Get images from folder, if folder passed in
                dirname = files[0]
                files = [os.path.join(dirname, fname)
                         for fname in os.listdir(dirname)
                         if os.path.splitext(fname)[-1].lower() in _image_extensions]
                logger.debug("Collected files from folder '%s': %s", dirname,
                             [os.path.basename(f) for f in files])

            filt_files = [] if files is None else files </s> remove             raise ValueError("action_option is required for ContextFullPaths: {}".format(opt))
 </s> add             raise ValueError(f"action_option is required for ContextFullPaths: {opt}") </s> remove     filter_files: str, list or ``None``
 </s> add     filter_files: list or ``None`` </s> remove             raise ValueError("filetypes is required for ContextFullPaths: {}".format(opt))
 </s> add             raise ValueError(f"filetypes is required for ContextFullPaths: {opt}") </s> remove         filter_files: str, list or ``None``
 </s> add         filter_files: list or ``None``
        elif action == actions.DirOrFilesFullPaths:
            retval["browser"] = ["folder", "multi_load"]
              retval["browser"] = ["save"]
          elif action == actions.DirOrFileFullPaths:
              retval["browser"] = ["folder", "load"]
        elif action == actions.DirOrFilesFullPaths:
            retval["browser"] = ["folder", "multi_load"]
          elif action == actions.ContextFullPaths and action_option:
              retval["browser"] = ["context"]
              retval["command"] = command
              retval["action_option"] = action_option
keep keep add keep keep keep keep
 Face-filter updates:
  - Allow selecting folder as well as multiple images
  - Lower default threshold and update helptext
  - bugfix: detector error when using all aligned faces
  - Standardize output folder name 
lib/gui/options.py