diff options
Diffstat (limited to 'chunk.go')
-rw-r--r-- | chunk.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |