mirror of
https://github.com/caddyserver/caddy.git
synced 2026-10-26 23:01:02 +00:00
* Add Files action to template context. (#1198) * Fixes to testFiles(). - Set os.ModePerm on directories created during test. - Use filepath.Join() to create directory path. - Use Fatalf, not Fatal. * Make additional fixes to test cases. * Fix test cases to use correct path format. Dir.Open() in net/http requires '/'-separated paths while filepath.Join() may produce paths with different separator. * Remove directory created by test at end of loop. * Close the FileSystem before returning. * Initialize names slice to the number of entries. Also, do not call os.RemoveAll() unless the path to the directory is a valid one. |
||
|---|---|---|
| .. | ||
| condition.go | ||
| condition_test.go | ||
| context.go | ||
| context_test.go | ||
| error.go | ||
| graceful.go | ||
| https.go | ||
| https_test.go | ||
| middleware.go | ||
| middleware_test.go | ||
| path.go | ||
| plugin.go | ||
| plugin_test.go | ||
| recorder.go | ||
| recorder_test.go | ||
| replacer.go | ||
| replacer_test.go | ||
| roller.go | ||
| server.go | ||
| server_test.go | ||
| siteconfig.go | ||
| vhosttrie.go | ||
| vhosttrie_test.go | ||