def file_flags(self, _file_flags):
        """Set the new file flags attribute of the BFD file being processed."""
        if not self._ptr:
            raise BfdException("BFD not initialized")

        return _bfd.set_file_flags(self._ptr, _file_flags)