public static string GetLocalJobAnimatedMotifDiretory(Production production, Motif motif) { return(Path.Combine(new string[] { ProductionPathHelper.GetLocalProductionDirectory(production), "motifs", motif.ID.ToString() })); }
public static string GetLocalJobMotifPath(Job job, Motif motif) { return(Path.Combine(new string[] { ProductionPathHelper.GetLocalProductionDirectory(job.Production), "motifs", motif.DownloadName })); }
public void WriteToProductionLog(Production production, string logText) { string targetPath = Path.Combine(ProductionPathHelper.GetLocalProductionDirectory(production), production.ID + "_logfile.txt"); if (!File.Exists(targetPath)) { return; } DateTime time = DateTime.Now; string dateString = String.Format("[{0:dd/mm/yyyy HH:mm:ss}] ", time); StreamWriter writer = new StreamWriter(targetPath, true); writer.Write(dateString + logText); writer.Close(); }
public static string GetLocalJobRenderOutputPathForZip(Job job) { return(Path.Combine(ProductionPathHelper.GetLocalProductionHashDirectory(job.Production), "zipOutput", job.Position.ToString())); }
public static string GetLocalJobDirectory(Job Job) { return(Path.Combine(ProductionPathHelper.GetLocalProductionDirectory(Job.Production), Job.ID.ToString())); }
public static string GetFilmHashPath(Production Production, FilmOutputFormat Format) { return(Path.Combine(ProductionPathHelper.GetLocalProductionHashDirectory(Production), GetFilmFilename(Production, Format))); }