GtkSharp/sample/gnomevfs/TestUnlink.cs
Jeroen Zwartepoorte f3b891e758 2004-12-27 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: s/uint/FilePermissions/.
	* gnomevfs/Gnomevfs.metadata: Make a bunch of API more user-friendly &
	C# like.
	* gnomevfs/Monitor.cs: Add internal MonitorEventType enum.
	* gnomevfs/Uri.custom: Move a bunch of API from Vfs.cs to Uri.
	* gnomevfs/Vfs.cs: Only put initialize & shutdown methods in here (plus
	some debug API).
	* gnomevfs/VfsStream.cs: Use new Uri API.
	* sample/gnomevfs/TestUnlink.cs: Fix sample.


svn path=/trunk/gtk-sharp/; revision=38112
2004-12-27 20:02:33 +00:00

23 lines
456 B
C#

using Gnome.Vfs;
using System;
namespace Test.Gnome.Vfs {
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 ();
}
}
}