likle / cwalk

Path library for C/C++. Cross-Platform for Linux, FreeBSD, Windows and MacOS. Supports UNIX and Windows path styles on those platforms.
https://likle.github.io/cwalk/
MIT License
250 stars 39 forks source link

resolve environment variables and ~ on unix like systems #48

Closed RaphGL closed 5 months ago

RaphGL commented 5 months ago

It is quite common for paths to be written as ~/Documents/my_doc.pdf or $HOME/Documents/my_doc.pdf. But there's no way of handling this in the library itself. So people would need to parse the string and change it themselves.

From reading the source code it seems we only have to add the resolution