MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / normalize_path

Function normalize_path

include/file/file.h:92–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static 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
100static char *remove_filename(const char *path)
101{

Callers 7

rename_fileFunction · 0.70
recursive_folder_copyFunction · 0.70
folder_listingFunction · 0.50
parsePathFunction · 0.50
handleclient_ftpFunction · 0.50
mount.hFile · 0.50
mount_threadFunction · 0.50

Calls 2

normalized_lenFunction · 0.85
strcatFunction · 0.50

Tested by

no test coverage detected