Compare commits

..

1 Commits

Author SHA1 Message Date
jolheiser 8f67a1e799
Add cache purge
continuous-integration/woodpecker the build was successful Details
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2021-10-08 16:23:48 -05:00
2 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,3 @@
clone:
git:
image: docker.io/a6543/test_git_plugin:latest
pipeline:
compliance:
image: golang:1.17

View File

@ -98,3 +98,13 @@ func WithSub(sub string) Option {
return
}
}
// WithCaching sets a caching mode for an FS
// Caching avoids subsequent os.Stat to determine if a file exists on disk
// See bench.txt for differences in usage
func WithCaching(doCache bool) Option {
return func(x *FS) error {
x.doCache = doCache
return nil
}
}