public static WebFolder add_Folder(this WebFolder webFolder, string name)
        {
            var subFolder = new WebFolder(name);

            webFolder.Folders.Add(subFolder);
            return(subFolder);
        }
        public static WebFile add_File(this WebFolder webFolder, string name)
        {
            var file = new WebFile(name);

            webFolder.Files.Add(file);
            return(file);
        }
        public static WebFile file(this WebFolder webFolder, string name)
        {
            var _file = (from file in webFolder.Files
                         where file.Name == name
                         select file).first();

            return(_file ?? webFolder.add_File(name));
        }
        public static WebFolder folder(this WebFolder webFolder, string name)
        {
            var subFolder = (from folder in webFolder.Folders
                             where folder.Name == name
                             select folder).first();

            return(subFolder ?? webFolder.add_Folder(name));
        }
 public static bool hasFolders(this WebFolder webFolder)
 {
     return(webFolder.Folders.size() > 0);
 }
		public static WebFolder add_Folder(this WebFolder webFolder, string name)
		{
			var subFolder = new WebFolder(name);
			webFolder.Folders.Add(subFolder);
			return subFolder;
		}