|
Boost Users : |
Subject: Re: [Boost-users] [Filesystem] There must be a better way to do path decomposition
From: Ramon F Herrera (ramon_at_[hidden])
Date: 2011-08-04 10:22:50
Thanks so much to Norbert and Richard. I solved my problem with this
statement:
lastComponent = (*it).string();
As long as we are on the topic: How do I expand directory notations with
dots? For instance, if my app is called like this:
myapp .
The dot should expand to `/home/ramon/src/development' or whatever.
I discovered that such construct is not expanded by the U*ix shell.
Have tried dirname() plus basename() but they don't work.
TIA,
-Ramon
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