Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > f6df280784aa0f527526e30ca937bcc4 > files > 57

gnome-sharp2-devel-2.24.2-3.i586.rpm

using Gnome.Vfs;
using System;

namespace TestGnomeVfs {
	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]);
			Result result = uri.Unlink ();
			
			Console.WriteLine ("result unlink ('{0}') = {1}", uri, result);
			
			Gnome.Vfs.Vfs.Shutdown ();
		}
	}
}