mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-31 22:36:41 -04:00
Lay groundwork for NT/UNIX-like sync interoperability
This commit is contained in:
@@ -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