1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-16 00:04:40 +00:00

local: factor UNCPath into lib/file

This commit is contained in:
Nick Craig-Wood
2020-06-11 13:00:56 +01:00
parent ae8bbc63da
commit 7622506fe2
5 changed files with 90 additions and 67 deletions

10
lib/file/unc.go Normal file
View File

@@ -0,0 +1,10 @@
//+build !windows
package file
// UNCPath converts an absolute Windows path to a UNC long path.
//
// It does nothing on non windows platforms
func UNCPath(l string) string {
return l
}