Lay groundwork for NT/UNIX-like sync interoperability

This commit is contained in:
2024-05-30 22:12:29 -04:00
parent ea34f644f3
commit 1f44d0b5f3
12 changed files with 80 additions and 61 deletions
+13
View File
@@ -0,0 +1,13 @@
//go:build windows
package sync
import (
"fmt"
"strings"
)
// printToStdout prints a string to stdout with UNIX path separators
func printToStdout(targetLocationIncomplete string) {
fmt.Print("\x1f" + strings.ReplaceAll(targetLocationIncomplete, "\\", "/"))
}