mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-10-27 05:19:58 -04:00
Lay groundwork for NT/UNIX-like sync interoperability
This commit is contained in:
1 parent
ea34f644f3
commit
1f44d0b5f3
12 files changed
+80
-61
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
package backend
|
||||
|
||||
// TargetLocationFormat returns the target location of an entry formatted for the current platform
|
||||
func TargetLocationFormat(entryName string) string {
|
||||
return EntryRoot + PathSeparator + entryName
|
||||
// TargetLocationFormat returns the full location of an entry (given the name) formatted for the current platform
|
||||
func TargetLocationFormat(targetLocationIncomplete string) string {
|
||||
return EntryRoot + targetLocationIncomplete
|
||||
}
|
||||
@@ -4,7 +4,7 @@ package backend
|
||||
|
||||
import "strings"
|
||||
|
||||
// TargetLocationFormat returns the target location of an entry formatted for the current platform
|
||||
func TargetLocationFormat(entryName string) string {
|
||||
return EntryRoot + PathSeparator + strings.ReplaceAll(entryName, "/", PathSeparator)
|
||||
// TargetLocationFormat returns the full location of an entry (given the name) formatted for the current platform
|
||||
func TargetLocationFormat(targetLocationIncomplete string) string {
|
||||
return EntryRoot + strings.ReplaceAll(targetLocationIncomplete, "/", PathSeparator)
|
||||
}
|
||||
Reference in new issue
Block a user