samedi 1 avril 2023

Resolving symlinks of a file path using boost c++11

I am trying to resolve any symlinks present in a file path even if the symlink is occurred to the parent directory of a file.

So if for example I have a/b/d/file and a symlink is created for dir b where b -> c so the file path is a/c/d/file.

Is there a function that could detect this symlink of the file a/c/d/file and return it to a/b/d/file?

I am using c++11

I tried the lexically.normal() function but isn’t working as expected.

Aucun commentaire:

Enregistrer un commentaire