def create_metadata(storage, path): metadata = Metadata() metadata.source_filename = path metadata.mtime = storage.mtime(path) metadata.content = storage.content(path) return metadata
from __future__ import absolute_import, unicode_literals __all__ = ('nojekyll') from strawman.metadata import Metadata nojekyll = Metadata() nojekyll.content = b"" nojekyll.path = '/.nojekyll'