using System;
using System.Collections;
using System.IO;
using Beagle.Util;

class X {

	public static void Main ()
	{
		IEnumerator files;

		files = DirectoryWalker.GetFileInfos (Environment.CurrentDirectory).GetEnumerator ();

		int count = 0;

		while (files.MoveNext ()) {
			FileInfo f = files.Current as FileInfo;

			++count;

			Console.WriteLine (f.Name);

			if (FileSystem.IsSpecialFile (f.FullName))
				Console.WriteLine ("  - IS A SPECIAL FILE");
		}

		Console.WriteLine ();
		Console.WriteLine ("Found {0} files", count);
	}
}