public override FBAbstractElement generate()
        {
            FBVersion vers = new FBVersion();
            FBDirectoryBuilder db = new FBDirectoryBuilder(this.path);
            vers.root = (FBDirectory) db.generate();

            return vers;
        }
Beispiel #2
0
        override public FBAbstractElement generate()
        {
            FBVersion          vers = new FBVersion();
            FBDirectoryBuilder db   = new FBDirectoryBuilder(this.path);

            vers.root = (FBDirectory)db.generate();

            return(vers);
        }
        public override FBAbstractElement generate()
        {
            DirectoryInfo dinfo = new DirectoryInfo(this.path);
            FBDirectory newDir = new FBDirectory(dinfo.Name);

            foreach (DirectoryInfo dir in dinfo.GetDirectories())
            {
                FBDirectoryBuilder db = new FBDirectoryBuilder(dir.FullName);
                newDir.addContent(db.generate());
            }

            foreach (FileInfo fil in dinfo.GetFiles())
            {
                FBFileBuilder fb = new FBFileBuilder(fil.FullName);
                newDir.addContent(fb.generate());
            }

            return newDir;
        }
Beispiel #4
0
        override public FBAbstractElement generate()
        {
            DirectoryInfo dinfo  = new DirectoryInfo(this.path);
            FBDirectory   newDir = new FBDirectory(dinfo.Name);

            foreach (DirectoryInfo dir in dinfo.GetDirectories())
            {
                if ((dir.Attributes & FileAttributes.Hidden) != FileAttributes.Hidden)
                {
                    FBDirectoryBuilder db = new FBDirectoryBuilder(dir.FullName);
                    newDir.addContent(db.generate());
                }
            }

            foreach (FileInfo fil in dinfo.GetFiles())
            {
                FBFileBuilder fb = new FBFileBuilder(fil.FullName);
                newDir.addContent(fb.generate());
            }

            return(newDir);
        }