def writable(self):
return (self._flags & self.FLAG_WRITE) == self.FLAG_WRITE<EOL>
Check if the file can be written to.

:returns:
    `True` if the file can be written to. If `False`, `write` will
    raise an exception.