Exemple #1
0
 public static string GetLocalJobAnimatedMotifDiretory(Production production, Motif motif)
 {
     return(Path.Combine(new string[]
     {
         ProductionPathHelper.GetLocalProductionDirectory(production),
         "motifs",
         motif.ID.ToString()
     }));
 }
Exemple #2
0
 public static string GetLocalJobMotifPath(Job job, Motif motif)
 {
     return(Path.Combine(new string[]
     {
         ProductionPathHelper.GetLocalProductionDirectory(job.Production),
         "motifs",
         motif.DownloadName
     }));
 }
Exemple #3
0
        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();
        }
Exemple #4
0
 public static string GetLocalJobRenderOutputPathForZip(Job job)
 {
     return(Path.Combine(ProductionPathHelper.GetLocalProductionHashDirectory(job.Production), "zipOutput", job.Position.ToString()));
 }
Exemple #5
0
 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)));
 }