diff options
author | n-peugnet <n.peugnet@free.fr> | 2021-09-13 12:14:44 +0200 |
---|---|---|
committer | Nicolas Peugnet <n.peugnet@free.fr> | 2021-09-13 13:27:57 +0200 |
commit | 56c88382cc8eed0814554c85fe7bf3415a155585 (patch) | |
tree | c47d2b5aeaead48dc884b2064b76d85e10480dc7 /chunk.go | |
parent | 888cb69f0a33c138ea4ac2212e799ba7cb9ae22a (diff) | |
download | dna-backup-56c88382cc8eed0814554c85fe7bf3415a155585.tar.gz dna-backup-56c88382cc8eed0814554c85fe7bf3415a155585.zip |
fix for windows, use filepath instead of path
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 { |