2 Feb
2009
2 Feb
'09
6:15 p.m.
On Mon, Feb 2, 2009 at 13:05, Sean Farrow
I am using boost.filesystem to hold a path including filename. would the function stem() of the path object give me the path excluding the filename? If i have: c:\program files\boost\welcome.txt The output wanted is: c:\program files\ Any help apreciated.
path("c:\program files\boost\welcome.txt").parent_path().parent_path() will give you path("c:\program files") This table is often the easiest way to find out which function you need: http://www.boost.org/libs/filesystem/doc/reference.html#Path-decomposition-t...