def METHOD_NAME(self, config):
    from fnmatch import translate
    config = config
    # Converts config to a dict with a list of paths
    if not isinstance(config, dict):
        config = {'path': config}
    if not isinstance(config['path'], list):
        config['path'] = [config['path']]
    config.setdefault('recursive', False)
    # If mask was specified, turn it in to a regexp
    if config.get('mask'):
        config['regexp'] = translate(config['mask'])
    # If no mask or regexp specified, accept all files
    config.setdefault('regexp', '.')
    # Sets the default retrieval option to files
    config.setdefault('retrieve', self.retrieval_options)
    return config