(path string)
| 695 | } |
| 696 | |
| 697 | func RemoveTrailingDirectorySeparator(path string) string { |
| 698 | if HasTrailingDirectorySeparator(path) { |
| 699 | return path[:len(path)-1] |
| 700 | } |
| 701 | return path |
| 702 | } |
| 703 | |
| 704 | func (p Path) RemoveTrailingDirectorySeparator() Path { |
| 705 | return Path(RemoveTrailingDirectorySeparator(string(p))) |
no test coverage detected