def handle_path(pathobj, variables=None, diff=False):
logger.info('<STR_LIT>',<EOL>pathobj.get('<STR_LIT:description>'))<EOL>variables = variables or {}<EOL>variable_expander = _VariablesHandler()<EOL>pathobj = variable_expander.expand(variables, pathobj)<EOL>pathobj = _set_path_defaults(pathobj)<EOL>path_to_handle = os.path.join(pathobj['<STR_LIT>'], pathobj['<STR_LIT:path>'])<EOL>logger.debug('<STR_LIT>', path_to_handle)<EOL>validate = '<STR_LIT>' in pathobj<EOL>if validate:<EOL><INDENT>validator_config = pathobj['<STR_LIT>']<EOL>validator = _Validator(validator_config)<EOL>validator_type = validator_config.get('<STR_LIT:type>', '<STR_LIT>')<EOL><DEDENT>rpx = Repex(pathobj)<EOL>if not pathobj.get('<STR_LIT:type>'):<EOL><INDENT>_handle_single_file(<EOL>rpx=rpx,<EOL>path_to_handle=path_to_handle,<EOL>pathobj=pathobj,<EOL>validate=validate,<EOL>diff=diff,<EOL>validator=validator if validate else None)<EOL><DEDENT>else:<EOL><INDENT>_handle_multiple_files(<EOL>rpx=rpx,<EOL>path_to_handle=path_to_handle,<EOL>pathobj=pathobj,<EOL>validate=validate,<EOL>diff=diff,<EOL>validator=validator if validate else None,<EOL>validator_type=validator_type if validate else None)<EOL><DEDENT>
Iterate over all chosen files in a path

    :param dict pathobj: a dict of a specific path in the config
    :param dict variables: a dict of variables (can be None)