Skip to content

Commit

Permalink
Merge pull request #4 from fraunhoferfokus/development
Browse files Browse the repository at this point in the history
* fix Problem with Windows and paths accessing embedded FS
  • Loading branch information
JGottschick authored May 2, 2024
2 parents 2774171 + c0b6778 commit 7205dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileUtils/fileUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func CopyFile(sourcePath string, destinationPath string, fileName string) {
}

func CopyWebFile(sourcePath string, destinationPath string, fileName string, overwrite bool) {
src := filepath.Join(sourcePath, fileName)
src := filepath.ToSlash(filepath.Join(sourcePath, fileName))
if _, err := os.Stat(src); errors.Is(err, os.ErrNotExist) || overwrite {
//Read all the contents of the source file
bytesRead, err := templates.WebFS.ReadFile(src)
Expand Down

0 comments on commit 7205dc7

Please sign in to comment.