mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 18:15:41 +00:00
33dbe7485e
* 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
25 lines
469 B
C#
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 ();
|
|
}
|
|
}
|
|
}
|