'Fix up the pathspec of the file.'

@flow.StateHandler()
def Stat(self, responses):

    response = responses.First()
    if (responses.success and response):
        self.state.stat_entry = response
    else:
        if (not self.args.ignore_stat_failure):
            raise IOError(('Error:    %s' % responses.status))
        self.state.stat_entry = rdf_client.StatEntry(pathspec=self.args.pathspec)
    if (self.args.read_length == 0):
        self.state.file_size = self.state.stat_entry.st_size
    else:
        self.state.file_size = self.args.read_length
    self.state.max_chunk_number = ((self.state.file_size / self.CHUNK_SIZE) + 1)
    self.FetchWindow(min(self.WINDOW_SIZE, (self.state.max_chunk_number - self.state['current_chunk_number'])))
