feat: store fetched files in data directory
1 file changed, 3 insertions(+), 0 deletions(-)
changed files
M internal/importer/main.go → internal/importer/main.go
@@ -13,6 +13,7 @@ "time" "alin.ovh/searchix/internal/config" "alin.ovh/searchix/internal/fetcher" + "alin.ovh/searchix/internal/file" "alin.ovh/searchix/internal/index" "alin.ovh/searchix/internal/manpages" "alin.ovh/searchix/internal/programs"@@ -28,6 +29,7 @@ LowMemory bool Logger *log.Logger WriteIndex *index.WriteIndex Manpages *manpages.URLMap + Root *file.Root } var Job struct {@@ -67,6 +69,7 @@ logger.Debug("starting fetcher") fetcher, err := fetcher.New(source, &fetcher.Options{ Logger: logger, + Root: imp.options.Root, }) if err != nil { return fault.Wrap(err, fmsg.With("error creating fetcher"))