aboutsummaryrefslogtreecommitdiffhomepage
path: root/filepath.go
diff options
context:
space:
mode:
Diffstat (limited to 'filepath.go')
-rw-r--r--filepath.go2
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