bugfix: use dirName not the (full) dirPath
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user