// Get news items from /News section except the Archive sub-section
var news = DocumentHelper.GetDocuments("CMS.News")
.OnSite("CorporateSite")
.Path("/News/%")
.ExcludePath("/News/Archive", PathTypeEnum.Section);
for all sub-folders the exclude path should be .ExcludePath("/News/%/%", PathTypeEnum.Section)