Boost logo

Boost Users :

Subject: [Boost-users] [filesystem] how to get symlink info?
From: jeti (buskatze_at_[hidden])
Date: 2009-02-19 08:56:23


hi all

im not sure if i just dont find the solution in the docs/list or its not
supported in boost::filesystem which means using system functions

given is a symlink like this
'/tmp/subdir/thisisasymlink'
which points to
'/some/where/some/file/or/directory'

what i need is:
1. the absolute path the symlink is pointing too, which is
'/some/where/some/file/or/directory'
2. get the absolute path for something like
'/tmp/../some/where/some/file/or/directory' which resolvs to
'/some/where/some/file/or/directory'
3. if the absolute path is a subdirectory of some other directory
in this example: if '/some/where/some/file/or/directory' is a
subdirectory of '/tmp/subdir' which obviously isnt

thx in advance


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net