troubles with Gnome::Vfs::Transfer::transfer()
- From: Sergio Perticone <g4ll0ws gmail com>
- To: gtkmm mailing-list <gtkmm-list gnome org>
- Subject: troubles with Gnome::Vfs::Transfer::transfer()
- Date: Sun, 27 May 2007 16:52:18 +0200
I'm sending this here because gnomemm list seems to be died, so sorry if
it's a little bit off topic.
I'm studying libgnomevfsmm, but I've a problem with this example code:
#include <libgnomevfsmm/init.h>
#include <libgnomevfsmm/transfer.h>
void foo(const Glib::ustring& src_path,
const Glib::ustring& target_path)
{
using namespace Gnome;
Vfs::init();
try {
Vfs::Transfer::transfer(src_path, target_path,
Vfs::XFER_FOLLOW_LINKS,
Vfs::XFER_ERROR_MODE_QUERY,
Vfs::XFER_OVERWRITE_MODE_SKIP);
}
catch(Vfs::exception& e) {
g_print("Failed: %s\n", e.what().data());
}
}
transfer() throws _always_ an exception. e.what() returns "Operation
interrupted".
I really don't know what's wrong with that... anyone have any ideas?
Thanks in advance,
s.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]