PathAddSeparatorSuffix Add path '/' suffix for example /root => /root/
(path string)
| 27 | // PathAddSeparatorSuffix Add path '/' suffix |
| 28 | // for example /root => /root/ |
| 29 | func PathAddSeparatorSuffix(path string) string { |
| 30 | if !strings.HasSuffix(path, "/") { |
| 31 | path = path + "/" |
| 32 | } |
| 33 | return path |
| 34 | } |
| 35 | |
| 36 | // PathEqual judge path is equal |
| 37 | func PathEqual(path1, path2 string) bool { |
no outgoing calls
no test coverage detected