aboutsummaryrefslogtreecommitdiffhomepage
path: root/filepath_windows.go
diff options
context:
space:
mode:
authorWeidiDeng <[email protected]>2024-11-15 11:49:42 +0800
committerGitHub <[email protected]>2024-11-14 20:49:42 -0700
commit6028ff27fa8eb65ffc0770386cbf6a9ac9f50a48 (patch)
treec442f296f41abc6b596e016152db7535c4fd3b8b /filepath_windows.go
parent37f0c4bfae780e9c98e652549b21446f490d5eb5 (diff)
downloadcaddy-6028ff27fa8eb65ffc0770386cbf6a9ac9f50a48.tar.gz
caddy-6028ff27fa8eb65ffc0770386cbf6a9ac9f50a48.zip
chore: make FastAbs comment more easy to understand (#6692)
Diffstat (limited to 'filepath_windows.go')
-rw-r--r--filepath_windows.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/filepath_windows.go b/filepath_windows.go
index 4e46b0445..aa70955e9 100644
--- a/filepath_windows.go
+++ b/filepath_windows.go
@@ -18,8 +18,10 @@ import (
"path/filepath"
)
-// FastAbs can't be optimized on Windows because the
-// syscall.FullPath function takes an input.
+// FastAbs can't be optimized on Windows because there
+// are special file paths that require the use of syscall.FullPath
+// to handle correctly.
+// Just call stdlib's implementation which uses that function.
func FastAbs(path string) (string, error) {
return filepath.Abs(path)
}