diff --git a/epub/wrapper.go b/epub/wrapper.go index 3a61fe5..dc5a0a7 100644 --- a/epub/wrapper.go +++ b/epub/wrapper.go @@ -339,6 +339,8 @@ func addDirContentToZip(zipWriter *zip.Writer, dirPath string, method uint16) er return err } + relPath = filepath.ToSlash(relPath) + file, err := os.Open(filePath) if err != nil { return err