'Checks if file size at path is equal to size.'

@utils.trace_method
def _discover_file_till_timeout(self, path, timeout=75):

    retry_seconds = timeout
    sleep_interval = 2
    base_path = os.path.dirname(path)
    self._touch_path_to_refresh(base_path)
    while True:
        if os.path.exists(path):
            return True
        elif (retry_seconds <= 0):
            LOG.warning('Discover    file    retries    exhausted.')
            return False
        else:
            time.sleep(sleep_interval)
            retry_seconds -= sleep_interval
            self._touch_path_to_refresh(base_path)
