diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-21 09:35:15 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-08 13:26:17 +0200 |
commit | d070bdf10f14d233288f7318a4e9f7555f070a65 (patch) | |
tree | fff8d59f98bdab3027bb45c4e10ca88594332872 /hugofs/createcounting_fs.go | |
parent | b08193971a821fc27e549a73120c15e5e5186775 (diff) |
Rework the Destination filesystem to make --renderStaticToDisk work
See #9626
Diffstat (limited to 'hugofs/createcounting_fs.go')
-rw-r--r-- | hugofs/createcounting_fs.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hugofs/createcounting_fs.go b/hugofs/createcounting_fs.go index 802806b7a..1737ad5ce 100644 --- a/hugofs/createcounting_fs.go +++ b/hugofs/createcounting_fs.go @@ -33,10 +33,18 @@ type DuplicatesReporter interface { ReportDuplicates() string } +var ( + _ FilesystemUnwrapper = (*createCountingFs)(nil) +) + func NewCreateCountingFs(fs afero.Fs) afero.Fs { return &createCountingFs{Fs: fs, fileCount: make(map[string]int)} } +func (fs *createCountingFs) UnwrapFilesystem() afero.Fs { + return fs.Fs +} + // ReportDuplicates reports filenames written more than once. func (c *createCountingFs) ReportDuplicates() string { c.mu.Lock() |