public TarFileObject (DirectoryObject tar_root)
		{
			AllowChildren ();
			
			ArrayList to_be_tarred;
			to_be_tarred = new ArrayList (tar_root.Children);

			foreach (FileSystemObject fso in to_be_tarred) {
				tar_root.RemoveChild (fso, null);
				this.AddChild (fso, null);
			}
		}
		public ZipFileObject (DirectoryObject zip_root)
		{
			AllowChildren ();
			
			ArrayList to_be_zipped;
			to_be_zipped = new ArrayList (zip_root.Children);

			foreach (FileSystemObject fso in to_be_zipped) {
				zip_root.RemoveChild (fso, null);
				this.AddChild (fso, null);
			}
		}
        public TarFileObject(DirectoryObject tar_root)
        {
            AllowChildren();

            ArrayList to_be_tarred;

            to_be_tarred = new ArrayList(tar_root.Children);

            foreach (FileSystemObject fso in to_be_tarred)
            {
                tar_root.RemoveChild(fso, null);
                this.AddChild(fso, null);
            }
        }
Exemple #4
0
        public ZipFileObject(DirectoryObject zip_root)
        {
            AllowChildren();

            ArrayList to_be_zipped;

            to_be_zipped = new ArrayList(zip_root.Children);

            foreach (FileSystemObject fso in to_be_zipped)
            {
                zip_root.RemoveChild(fso, null);
                this.AddChild(fso, null);
            }
        }