X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=storage%2Ffile-piece.go;h=d30e1c1a4d8cee554507f290758059bfefc90e6e;hb=refs%2Fheads%2Fbtrtrc;hp=98fb806b8d3ae8ff5317a4accc401ae55075d240;hpb=bcd7fd4a6d83f4aca1e9e3d4c35997ef6aca405d;p=btrtrc.git diff --git a/storage/file-piece.go b/storage/file-piece.go index 98fb806b..d30e1c1a 100644 --- a/storage/file-piece.go +++ b/storage/file-piece.go @@ -38,7 +38,7 @@ func (fs *filePieceImpl) Completion() Completion { Length: fs.p.Length(), }, func(i int, extent segments.Extent) bool { file := fs.files[i] - s, err := os.Stat(file.path) + s, err := os.Stat(PathShortener(file.path)) if err != nil || s.Size() < extent.Start+extent.Length { verified = false return false