Skip to content

Commit

Permalink
Fix chunk filenames
Browse files Browse the repository at this point in the history
Fixes issue #1
  • Loading branch information
tasket committed Oct 29, 2018
1 parent a53ee63 commit a5239e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sparsebak.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,8 @@ def record_to_vm(send_all = False):
stream_started = True

# Add buffer to stream
tar_info = tarfile.TarInfo(sdir+"-tmp/"+destfile[:-7] \
+destfile)
tar_info = tarfile.TarInfo(sdir+"-tmp/"+destfile[1:-7] \
+"/"+destfile)
tar_info.size = len(buf)
tar_info.mtime = thetime
tarf.addfile(tarinfo=tar_info, fileobj=io.BytesIO(buf))
Expand Down

0 comments on commit a5239e9

Please sign in to comment.