bugfix: use dirName not the (full) dirPath

This commit is contained in:
Pim van Pelt
2025-12-03 13:19:59 +01:00
parent 7a8e469baa
commit fa6df14ce7

View File

@@ -200,8 +200,8 @@ func processS3Hierarchy(objects []S3Object, opts *indexgen.Options, client *s3.C
} }
dirName := filepath.Base(dirPath) dirName := filepath.Base(dirPath)
// Build the correct path for S3 // Build the correct relative path for S3 (relative to current directory)
dirEntryPath := dirPath + "/" dirEntryPath := dirName + "/"
if opts.DirAppend { if opts.DirAppend {
dirEntryPath += opts.OutputFile dirEntryPath += opts.OutputFile
} }