J
Javier
Hello all,
I'm trying to remove a hidden file (in UNIX) using the
Boost::filesystem library.
This is what I have:
#include <boost/filesystem/operations.hpp>
namespace fs=boost::filesystem;
my_func()
{
fs::remove(fs:ath("/path/to/.hiddenfile")); // this file
exists, and I have permissions to write it
}
And I get this error:
terminate called after throwing an instance of
'boost::filesystem::filesystem_error'
what(): boost::filesystem:ath: invalid name ".hiddenfile" in
path: "/path/to/.hiddenfile"
Do you know what is wrong?
Is there any other way for doing this?
Thanks.
I'm trying to remove a hidden file (in UNIX) using the
Boost::filesystem library.
This is what I have:
#include <boost/filesystem/operations.hpp>
namespace fs=boost::filesystem;
my_func()
{
fs::remove(fs:ath("/path/to/.hiddenfile")); // this file
exists, and I have permissions to write it
}
And I get this error:
terminate called after throwing an instance of
'boost::filesystem::filesystem_error'
what(): boost::filesystem:ath: invalid name ".hiddenfile" in
path: "/path/to/.hiddenfile"
Do you know what is wrong?
Is there any other way for doing this?
Thanks.