Yesadrianinsaval wrote: ↑Tue Jun 21, 2022 2:17 pm And what about a link to a link? is that handled by your code @flachyjoe ? I tried in bash an it is handled by cp
https://www.boost.org/doc/libs/1_66_0/libs/filesystem/doc/reference.html#canonical wrote: Overview: Converts p, which must exist, to an absolute path that has no symbolic link, dot, or dot-dot elements.
https://www.boost.org/doc/libs/1_66_0/libs/filesystem/doc/reference.html#weakly_canonical wrote:Overview: Returns p with symlinks resolved and the result normalized.
Returns: A path composed of the result of calling the canonical function on a path composed of the leading elements of p that exist, if any, followed by the elements of p that do not exist, if any.