- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for fixLongPath (0.08 sec)
-
internal/lock/lock_windows_test.go
} { in := strings.ReplaceAll(test.in, "long", veryLong) want := strings.ReplaceAll(test.want, "long", veryLong) if got := fixLongPath(in); got != want { got = strings.ReplaceAll(got, veryLong, "long") t.Errorf("fixLongPath(%q) = %q; want %q", test.in, got, test.want) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 2.2K bytes - Viewed (0) -
internal/lock/lock_windows.go
return lockedOpenFile(path, flag, perm, lockType) } // fixLongPath returns the extended-length (\\?\-prefixed) form of // path when needed, in order to avoid the default 260 character file // path limit imposed by Windows. If path is not easily converted to // the extended-length form (for example, if path is a relative path // or contains .. elements), or is short enough, fixLongPath returns // path unmodified. //
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 7.9K bytes - Viewed (0)