Subject: Re: [boost] [filesystem] Normalize
From: Konstantin Litvinenko (to.darkangel_at_[hidden])
Date: 2009-03-09 06:03:50
Konstantin Litvinenko Ð¿Ð¸ÑÐµÑ:
> Hi All!
> I have noticed that
> fs::path("/foo/boo/.").normalize == fs::path("/foo/boo/.")
> and but I expect
> fs::path("/foo/boo/.").normalize == fs::path("/foo/boo")
> without trailing dot.
> I there is a reason why trailing dot is not removed? Is that paths is
> not equivalents on some systems?
Ok, I have answered this question by my self :) Yes, this paths is
not equivalents in POSIX systems because of symbolic links resolutions.
I can handle this. But second question arises. Why fs::path::normalize()
is deprecated? Why users should perform this non trivial function by hands?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk