Hello:
I'm was looking the gio samples to see how to to access to a remote
folder, but with the example in the site don't work .
I search in the web and in the GLib doc, create the next code
but looks like that is not the right way.
Any idea?
public class Main
{
public static int main (string[] args)
{
File f=File.new_for_uri("sftp://10.32.17.245/home/aconsuegra/Webcam1");
MountOperation mo = new MountOperation();
mo.set_password("user");
mo.set_username("pass");
f.mount_enclosing_volume(MountMountFlags.NONE,mo,null);
if( !f.query_exists(null) ){
try{
f.make_directory(null);
}
catch(Error e){
stderr.printf("%s\n",e.message);
}
}
return 0;
}
}
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list