Pretzel.Logic.Templating.Context.SiteContextGenerator.GetPathWithTimestamp C# (CSharp) Method

GetPathWithTimestamp() private method

private GetPathWithTimestamp ( string outputDirectory, string file ) : string
outputDirectory string
file string
return string
        private string GetPathWithTimestamp(string outputDirectory, string file)
        {
            // TODO: detect mode from site config
            var fileName = Path.GetFileName(file);

            var tokens = fileName.Split('-');
            var timePath = Path.Combine(tokens);
            return Path.Combine(outputDirectory, timePath);
        }