Boost logo

Boost Users :

Subject: [Boost-users] Using filesystem::remove with wildcards
From: toran (admin_at_[hidden])
Date: 2012-01-19 23:13:56


I am having trouble deleting files with boost::filesystem. Following code does
not work for me (and I can't find the doc that explains how to do it).

boost::filesystem::path pt("somepath");
pt /= ("*.data");
boost::filesystem::remove(pt);

pt variable points to the valid set of files, but removal does not happened.

I will appreciate an advise and may be pointing me to the right place in the
docs. Thanks.


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