def check_and_touch_output(self, job, wait=3, ignore_missing_output=False, no_touch=False, force_stay_on_remote=False):
    ' Raise exception if output files of job are missing. '
    expanded_output = [job.shadowed_path(path) for path in job.expanded_output]
    if job.benchmark:
        expanded_output.append(job.benchmark)
    if (not ignore_missing_output):
        try:
            wait_for_files(expanded_output, latency_wait=wait, force_stay_on_remote=force_stay_on_remote, ignore_pipe=True)
        except IOError as e:
            raise MissingOutputException((str(e) + '\nThis might be due to filesystem latency. If that is the case, consider to increase the wait time with --latency-wait.'), rule=job.rule)
    for f in expanded_output:
        if ((f.is_directory and (not os.path.isdir(f))) or (os.path.isdir(f) and (not f.is_directory))):
            raise ImproperOutputException(job.rule, [f])
    if (not no_touch):
        for f in expanded_output:
            if f.exists_local:
                f.touch()
Raise exception if output files of job are missing.
def check_and_touch_output(self, job, wait=3, ignore_missing_output=False, no_touch=False, force_stay_on_remote=False):
    '  '
    expanded_output = [job.shadowed_path(path) for path in job.expanded_output]
    if job.benchmark:
        expanded_output.append(job.benchmark)
    if (not ignore_missing_output):
        try:
            wait_for_files(expanded_output, latency_wait=wait, force_stay_on_remote=force_stay_on_remote, ignore_pipe=True)
        except IOError as e:
            raise MissingOutputException((str(e) + '\nThis might be due to filesystem latency. If that is the case, consider to increase the wait time with --latency-wait.'), rule=job.rule)
    for f in expanded_output:
        if ((f.is_directory and (not os.path.isdir(f))) or (os.path.isdir(f) and (not f.is_directory))):
            raise ImproperOutputException(job.rule, [f])
    if (not no_touch):
        for f in expanded_output:
            if f.exists_local:
                f.touch()