def export(self, dirname):
        # Normalize and check
        if dirname.startswith('~'):  # pragma: no cover
            dirname = os.path.expanduser(dirname)
        if not os.path.isdir(dirname):
            raise ValueError('dirname %r for export is not a directory.' % dirname)
        # Export all assets
        for fname in self.get_asset_names():
            if not fname.startswith('index-'):
                with open(os.path.join(dirname, fname), 'wb') as f:
                    f.write(self.load_asset(fname))

# Our singleton asset store
Write all assets to the given directory.
dataset/ETHPy150Open zoofIO/flexx/flexx/app/assetstore.py/AssetStore.export