From fa6df14ce7a001142b35d076265b4e112cf17133 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Wed, 3 Dec 2025 13:19:59 +0100 Subject: [PATCH] bugfix: use dirName not the (full) dirPath --- cmd/s3-genindex/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/s3-genindex/main.go b/cmd/s3-genindex/main.go index d944f78..612a1e7 100644 --- a/cmd/s3-genindex/main.go +++ b/cmd/s3-genindex/main.go @@ -200,8 +200,8 @@ func processS3Hierarchy(objects []S3Object, opts *indexgen.Options, client *s3.C } dirName := filepath.Base(dirPath) - // Build the correct path for S3 - dirEntryPath := dirPath + "/" + // Build the correct relative path for S3 (relative to current directory) + dirEntryPath := dirName + "/" if opts.DirAppend { dirEntryPath += opts.OutputFile }