From 56c88382cc8eed0814554c85fe7bf3415a155585 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 13 Sep 2021 12:14:44 +0200 Subject: fix for windows, use filepath instead of path --- chunk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chunk.go') diff --git a/chunk.go b/chunk.go index 14b8cfd..0d84040 100644 --- a/chunk.go +++ b/chunk.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" "io" - "path" + "path/filepath" ) type Chunk interface { @@ -33,7 +33,7 @@ type ChunkId struct { } func (i *ChunkId) Path(repo string) string { - return path.Join(repo, fmt.Sprintf(versionFmt, i.Ver), chunksName, fmt.Sprintf(chunkIdFmt, i.Idx)) + return filepath.Join(repo, fmt.Sprintf(versionFmt, i.Ver), chunksName, fmt.Sprintf(chunkIdFmt, i.Idx)) } func NewLoadedChunk(id *ChunkId, value []byte) *LoadedChunk { -- cgit v1.2.3