PathAppend is a useful winapi function that lets you append one path to another while taking care of any trailing backslashes (or lack of them).
Meaning that appending "/dir1"
to "dir2"
, or "/dir1"
to "/dir2"
, or "/dir1/"
to "/dir2"
would produce the same (correct) result - "/dir1/dir2"
(while simply concatening would produce respectively "/dir1dir2"
, "/dir1/dir2"
, and "/dir1//dir2"
).
Is there any Qt function that does a similar thing?
See Question&Answers more detail:os