Exemplo n.º 1
0
        public static void Run()
        {
            Folder dir1 = new Folder("dir1"),
                      dir2 = new Folder("dir2"),
                      dir3 = new Folder("dir3");

            File file1 = new File("file1"),
                file2 = new File("file2"),
                file3 = new File("file3"),
                file4 = new File("file4"),
                file5 = new File("file5");

            dir1.Add(file1);
            dir1.Add(dir2);
            dir2.Add(file3);
            dir2.Add(file4);
            dir2.Add(dir3);
            dir3.Add(file5);
            dir1.Add(file2);

            dir1.ls();
        }