boost::filesystem get relative path

后端 未结 5 2134
予麋鹿
予麋鹿 2020-12-29 20:20

What methods of the boost::filesystem library can help me to get a path relative to another path?

I have a path /home/user1/Downloads/Books

5条回答
  •  不思量自难忘°
    2020-12-29 20:49

    Sadly, such a function does not exist in Boost.Filesystem. It has been requested, but they don't seem to care.

    You basically have to do it manually.

    Boost.Filesystem 1.60 added the relative function that can be used to handle this.

提交回复
热议问题