7f3171c814
is now tracking Gnome 2.6. svn path=/trunk/gtk-sharp/; revision=35479
27 lines
595 B
C#
27 lines
595 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: TestInfo <uri>");
|
|
return;
|
|
}
|
|
|
|
Gnome.Vfs.Vfs.Initialize ();
|
|
|
|
Gnome.Vfs.Uri uri = new Gnome.Vfs.Uri (args[0]);
|
|
|
|
FileInfoOptions options = FileInfoOptions.GetMimeType |
|
|
FileInfoOptions.FollowLinks |
|
|
FileInfoOptions.GetAccessRights;
|
|
FileInfo info = uri.GetFileInfo (options);
|
|
Console.WriteLine (info.ToString ());
|
|
|
|
Gnome.Vfs.Vfs.Shutdown ();
|
|
}
|
|
}
|
|
}
|