Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions embed_util/file_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func buildFileListFromDir(dir string) (*fileList, error) {
}

fle := fileListEntry{
Name: relPath,
Name: filepath.ToSlash(relPath), // Fix for Windows, for an fs.FS, you should open files with forward slashes
Size: info.Size(),
Mode: info.Mode(),
}
Expand Down Expand Up @@ -92,7 +92,7 @@ func buildFileListFromFs(embedFs fs.FS) (*fileList, error) {
}

fle := fileListEntry{
Name: path,
Name: filepath.ToSlash(path), // Fix for Windows, for an fs.FS, you should open files with forward slashes
Size: info.Size(),
Mode: info.Mode() | 0o600,
}
Expand Down