Skip to content

Commit 4147c27

Browse files
dir add slash
1 parent 19e9231 commit 4147c27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/archive/zip/writer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ func (w *Writer) AddFS(fsys fs.FS) error {
526526
return err
527527
}
528528
if d.IsDir() {
529+
h.Name += "/"
529530
return nil
530531
}
531532
f, err := fsys.Open(name)

0 commit comments

Comments
 (0)