private static Dictionary <int, Dictionary <string, bool> > GetFormAttachmentFiles(IInstanceInfo instanceInfo, DataSet allData, AllSiteSettings siteSettings) { Dictionary <int, Dictionary <string, bool> > fileItems = new Dictionary <int, Dictionary <string, bool> >(); foreach (DataRow siteRow in allData.Tables["KenticoSites"].Rows) { var siteID = Convert.ToInt32(siteRow["SiteID"]); fileItems.Add(siteID, new Dictionary <string, bool>()); foreach (var fileObj in UriExtensions.GetFiles(siteSettings[siteID].baseFormAttachmentsFolder, true, instanceInfo)) { fileItems[siteID].Add(fileObj.Name, false); } } return(fileItems); }