diff options
Diffstat (limited to 'archive')
| -rw-r--r-- | archive/archive.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archive/archive.go b/archive/archive.go index 08b1c75..639a864 100644 --- a/archive/archive.go +++ b/archive/archive.go @@ -8,6 +8,8 @@ import ( "io" "os" + + "strings" ) type Archive struct { @@ -71,6 +73,9 @@ func tarWalkfn(writer *tar.Writer) filepath.WalkFunc { } defer f.Close() + // Convert Windows paths to Unix paths + path = strings.Replace(path, "\\", "/", -1) + // TODO; See if tar.FileInfoheader() could be used instead // without the pathing issues I encountered h := &tar.Header{ |
