Remove disk letter from filename in tarball
rafaeljusto opened this issue · comments
Rafael Dantas Justo commented
In Windows, when creating the tarball, we are storing the filename with the disk letter.
Rafael Dantas Justo commented
A simple program to illustrate the bug:
package main
import (
"fmt"
"path/filepath"
)
func main() {
fmt.Println(filepath.Join(`backup-dir`, `c:\important-dir\important-file`))
}
When running in Windows we get the output:
backup-dir\c:\important-dir\important-file
Where we wanted:
backup-dir\important-dir\important-file