Closed bgrieco closed 4 years ago
Hi @bgrieco !
This is indeed imperfect. I am going to change cwk_path_get_absolute
to use a backslash instead, since a backslash without drive letter will reference to the current drive. Please don't call cwk_path_get_absolute
with a relative base. The base should be absolute.
I would really be interested in what didn't work with path_join and appreciate further information there!
I pushed those changes in https://github.com/likle/cwalk/commit/1dac5f18c12c89933d6ea8264a10a2ef02304e74, they are available on the master branch.
Please let me know if you still encounter issues with this after the previous commit.
on line 651
The function produces a weird Unix path if the base is not absolute in windows. There could be some thought about trying to see if the appended path has a root in those cases since assuming c:\ as a root is not the best option.
BTW, I stumbled on this because I tried path_join and could not produce absolute paths with it.