We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make_path_absolute
It will be wrong to simplify a path by elimination of foo/../ kind of patterns, in case foo is a symlink.
foo/../
foo
The directory part of path may be resolved by file system API:
realpath
GetFinalPathNameByHandleA
_WIN32_WINNT
HANDLE hDirectory = CreateFile( path, 0, FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE, nullptr, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, nullptr); GetFinalPathNameByHandleA( hDirectory, path, pathlen, VOLUME_NAME_DOS|FILE_NAME_NORMALIZED);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It will be wrong to simplify a path by elimination of
foo/../
kind of patterns, in casefoo
is a symlink.The directory part of path may be resolved by file system API:
realpath
GetFinalPathNameByHandleA
(_WIN32_WINNT
>= 0x0600)The text was updated successfully, but these errors were encountered: