Boost logo

Boost :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-08-08 08:06:04


Martin Wille wrote:

> Vladimir Prus wrote:
>> Hello,
>> suppose I have this:
>>
>> path p = .........;
>> p /= "../../../a/b/c" ;
>>
>> with current CVS version of filesystem I get paths like:
>>
>>
>>
bin/gcc/debug/threading-multi/../../../../bin/nm/debug/threading-multi/print_and_set.map
>>
>> which are correct, but it has reduntant elements. Say first ".." undoes
>> "threading-multi" and next ".." undoes "debug" and the path is the same
>> as
>
> foo/.. is not redundant when foo is a symbolic link.

Ah, right. But since filesystem can check if a path is symbolic link, it's
still possible to implement 'normalize' operation (external to path) that
works correctly.

- Volodya


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk