diff options
author | WeidiDeng <[email protected]> | 2024-11-15 11:49:42 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-14 20:49:42 -0700 |
commit | 6028ff27fa8eb65ffc0770386cbf6a9ac9f50a48 (patch) | |
tree | c442f296f41abc6b596e016152db7535c4fd3b8b /filepath.go | |
parent | 37f0c4bfae780e9c98e652549b21446f490d5eb5 (diff) | |
download | caddy-6028ff27fa8eb65ffc0770386cbf6a9ac9f50a48.tar.gz caddy-6028ff27fa8eb65ffc0770386cbf6a9ac9f50a48.zip |
chore: make FastAbs comment more easy to understand (#6692)
Diffstat (limited to 'filepath.go')
-rw-r--r-- | filepath.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filepath.go b/filepath.go index ae9d54051..aad907799 100644 --- a/filepath.go +++ b/filepath.go @@ -24,6 +24,8 @@ import ( // FastAbs is an optimized version of filepath.Abs for Unix systems, // since we don't expect the working directory to ever change once // Caddy is running. Avoid the os.Getwd() syscall overhead. +// It's overall the same as stdlib's implementation, the difference +// being cached working directory. func FastAbs(path string) (string, error) { if filepath.IsAbs(path) { return filepath.Clean(path), nil |