| 90 | } |
| 91 | |
| 92 | static void normalize_path(char *path, bool slash) |
| 93 | { |
| 94 | if(!path) return; // sanity check |
| 95 | |
| 96 | u16 flen = normalized_len(path); path[flen] = '\0'; |
| 97 | if(!(*path) || (slash && (flen > 1) && (path[flen] != '/'))) strcat(path + flen, "/"); |
| 98 | } |
| 99 | |
| 100 | static char *remove_filename(const char *path) |
| 101 | { |
no test coverage detected