'Set the file pointer to the given spot. @see file.seek'

def seek(self, offset, whence=0):

    if (whence == SEEK_SET):
        self._pos = offset
    elif (whence == SEEK_CUR):
        self._pos += offset
    elif (whence == SEEK_END):
        self.stat()
        self._pos = (self._fs.stats(self._path).size + offset)
    else:
        raise IOError(errno.EINVAL, _('Invalid    argument    to    seek    for    whence'))
