2004-10-29 20:33:07 +00:00
|
|
|
using Gnome.Vfs;
|
|
|
|
using System;
|
|
|
|
|
2005-01-12 15:34:09 +00:00
|
|
|
namespace TestGnomeVfs {
|
2004-10-29 20:33:07 +00:00
|
|
|
public class TestUnlink {
|
|
|
|
static void Main (string[] args)
|
|
|
|
{
|
|
|
|
if (args.Length != 1) {
|
|
|
|
Console.WriteLine ("Usage: TestUnlink <uri>");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Gnome.Vfs.Vfs.Initialize ();
|
|
|
|
|
|
|
|
Gnome.Vfs.Uri uri = new Gnome.Vfs.Uri (args[0]);
|
2004-12-27 20:02:33 +00:00
|
|
|
Result result = uri.Unlink ();
|
2004-10-29 20:33:07 +00:00
|
|
|
|
|
|
|
Console.WriteLine ("result unlink ('{0}') = {1}", uri, result);
|
|
|
|
|
|
|
|
Gnome.Vfs.Vfs.Shutdown ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|