GtkSharp/sample/gnomevfs/TestDirectory.cs
Jeroen Zwartepoorte 33dbe7485e 2004-11-01 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: Bind gnome_vfs_directory_list_load as a static
	FileInfo[] GetEntries (uri) method.
	* gnomevfs/FileInfo.cs: Add internal FileInfoNative constructor to
	create a FileInfo class based on an existing FileInfoNative struct.
	* gnomevfs/Makefile.am:
	* sample/gnomevfs/Makefile.am:
	* sample/gnomevfs/TestDirectory.cs:

svn path=/trunk/gtk-sharp/; revision=35532
2004-11-01 20:03:30 +00:00

25 lines
469 B
C#

using Gnome.Vfs;
using System;
using System.Text;
namespace Test.Gnome.Vfs {
public class TestInfo {
static void Main (string[] args)
{
if (args.Length != 1) {
Console.WriteLine ("Usage: TestDirectory <uri>");
return;
}
Gnome.Vfs.Vfs.Initialize ();
FileInfo[] entries = Gnome.Vfs.Directory.GetEntries (args[0]);
foreach (FileInfo info in entries)
Console.WriteLine (info.ToString ());
Gnome.Vfs.Vfs.Shutdown ();
}
}
}