Skip to content

Commit 13fc253

Browse files
authored
added sub directory fetching
1 parent 0b092ad commit 13fc253

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/toolbox/path.h

+8
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ void path_extract_basename(const char* path, string_t basename);
3030
*/
3131
void path_extract_dirname(const char* path, string_t dirname);
3232

33+
/**
34+
* @brief Extract all sub directory names after initial root directory
35+
*
36+
* @param path path string
37+
* @param subdirname output string. Must be initialized before.
38+
*/
39+
void path_extract_subdirnames(const char* path, string_t subdirnames);
40+
3341
/**
3442
* @brief Appends new component to path, adding path delimiter
3543
*

0 commit comments

Comments
 (0)