hi problem with compiling cosmos

Jul 22, 2010 at 7:14 PM



        system.e

  var xBoot = new Cosmos.Sys.Boot();
            xBoot.Execute();
            Console.WriteLine("Patato OS");

            string[] args = new string[1];
            args[0] = "home "; ;

            FilesystemEntry[] dirs = Cosmos.Sys.VFSManager.GetDirectoryListing(args[0]);
            Console.WriteLine("Contents ");
            foreach (FilesystemEntry dir in dirs)
            {
                if (dir.IsDirectory == true)
                {

                    Console.WriteLine("{0} DIR  Size : {1}    ", dir.Name, dir.Size);
                }
                else
                {
                    if (dir.IsDirectory == true)
                    {

                        Console.WriteLine("{0} FILE  Size : {1}  {2}  ", dir.Name, dir.Size, dir.ToString());
                    }

                }

            while (true)
            {
              

                

            }
         



        }
xception plug needed void  system.threading monitor.enter

Coordinator
Jul 22, 2010 at 10:31 PM
Don't use interfaces (foreach uses interfaces..)

also, for simple io, just use
System.IO.Directory.GetDirectories(string) and
System.IO.Directory.GetFiles(string)
no need to use the kernel vfsmaanger, which will change in the future,
and be hidden, or at least inaccessible...

On 7/22/10, angarato_surion <notifications@codeplex.com> wrote:
> From: angarato_surion
>
>
>
> system.e var xBoot = new Cosmos.Sys.Boot();
> xBoot.Execute(); Console.WriteLine("Patato OS");
> string[] args = new string[1]; args[0] = "home "; ;
> FilesystemEntry[] dirs = Cosmos.Sys.VFSManager.GetDirectoryListing(args[0]);
> Console.WriteLine("Contents "); foreach
> (FilesystemEntry dir in dirs) { if
> (dir.IsDirectory == true) {
> Console.WriteLine("{0} DIR Size : {1} ", dir.Name, dir.Size);
> } else { if
> (dir.IsDirectory == true) {
> Console.WriteLine("{0} FILE Size : {1} {2} ", dir.Name, dir.Size,
> dir.ToString()); } } while
> (true) { }
> }xception plug needed void system.threading monitor.enter
>
>