private string GetImportExportTempFolder(Site site) { var labelPath = new LabelPath(site); return Path.Combine(labelPath.PhysicalPath, "TEMP"); }
private string GetLabelFile(Site site, string category) { var labelPath = new LabelPath(site); if (string.IsNullOrEmpty(category)) { return Path.Combine(labelPath.PhysicalPath, DefaultLabelFile); } else { return Path.Combine(labelPath.PhysicalPath, category + ".json"); } }
public void Flush(Site site) { var labelPath = new LabelPath(site); Kooboo.IO.IOUtility.DeleteDirectory(labelPath.PhysicalPath, true); }
public IEnumerable<string> GetCategories(Site site) { var labelPath = new LabelPath(site); return GetCategories(labelPath.PhysicalPath); }