Add the \?\ prefix to all paths on Windows

This commit is contained in:
Gilbert Chen
2018-11-08 21:29:02 -05:00
parent 2e5cbc73b9
commit 53548a895f
4 changed files with 17 additions and 16 deletions

View File

@@ -9,6 +9,7 @@ package duplicacy
import (
"bytes"
"os"
"path"
"path/filepath"
"syscall"
@@ -83,3 +84,7 @@ func (entry *Entry) SetAttributesToFile(fullPath string) {
}
}
func joinPath(components ...string) string {
return path.Join(components...)
}