diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2017-01-17 00:17:27 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2017-01-17 00:17:27 -0500 |
| commit | 9c1a057756c8f1ef486642699e45a9fa6df0b071 (patch) | |
| tree | d5ec7b19833ba0fd69be544c6facf1cea4622ce6 /archive/archive.go | |
| parent | 4cdac3c00a8710ead5d709428c08cc69d3b4bd27 (diff) | |
| download | steam-export-9c1a057756c8f1ef486642699e45a9fa6df0b071.tar.gz steam-export-9c1a057756c8f1ef486642699e45a9fa6df0b071.tar.xz | |
Changes to archive handling to improve cross-platform compatibility
Diffstat (limited to 'archive/archive.go')
| -rw-r--r-- | archive/archive.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/archive/archive.go b/archive/archive.go index 6941b64..08b1c75 100644 --- a/archive/archive.go +++ b/archive/archive.go @@ -74,9 +74,10 @@ func tarWalkfn(writer *tar.Writer) filepath.WalkFunc { // TODO; See if tar.FileInfoheader() could be used instead // without the pathing issues I encountered h := &tar.Header{ - Name: path, - Size: info.Size(), - Mode: int64(info.Mode()), + Name: path, + Size: info.Size(), + // I don't like it... but it helps with platform compatibility + Mode: 0664, ModTime: info.ModTime(), } |
