Skip to content

Commit

Permalink
Fix assets path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
o1egl committed Mar 14, 2021
1 parent c359e19 commit 51019ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion govatar.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"io/fs"
"math/rand"
"os"
"path"
"path/filepath"
"sort"
"strings"
Expand Down Expand Up @@ -175,7 +176,7 @@ func mustAssetsList(dir string) []string {
}
assets := make([]string, len(dirEntries))
for i, dirEntry := range dirEntries {
assets[i] = filepath.Join(dir, dirEntry.Name())
assets[i] = path.Join(dir, dirEntry.Name())
}
sort.Sort(naturalSort(assets))
return assets
Expand Down

0 comments on commit 51019ae

Please sign in to comment.