I'm trying to use the std::filesystem to expand the tilde (~) in a path.
for example:
convert "~/Desktop" to "/homes/thewoz/Desktop"
know how I can do?
Update:
Thank you all for your responses.
Anyway it seems to me that the answer is NO.
I was asking if there was a way to do it with std::filesystem not a generic way to do it.
maybe like this:
For Windows it's probably a concatenation of
std::getenv("HOMEDRIVE")andstd::getenv("HOMEPATH"), I have no way to verify this.