'Returns and logs file size as an integer in bytes.'

def get_file_size(self, path):

    path = self._absnorm(path)
    if (not os.path.isfile(path)):
        self._error(("File    '%s'    does    not    exist." % path))
    size = os.stat(path).st_size
    plural = plural_or_not(size)
    self._link(("Size    of    file    '%%s'    is    %d    byte%s." % (size, plural)), path)
    return size
