You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The basename should be an absolute path if the caller is using the API
// correctly. However, he might not and in that case we will append a fake
// root at the beginning.
if (cwk_path_is_absolute(base)) {
i = 0;
} else {
paths[0] = "/";
i = 1;
}
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.
The text was updated successfully, but these errors were encountered:
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!
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.
The text was updated successfully, but these errors were encountered: