public string GetFilePath(string filename) { string f; if (FilePaths.TryGetValue(filename, out string filepath)) { return(filepath); } if (CSVPrefix.Equals("")) { f = filename; } else { f = $"{CSVPrefix}_{filename}"; } f = $"{f}_{DateTime.Now.ToString("yyyyMMddHHmmss")}.csv"; filepath = Path.Combine(CSVFolder, f); FilePaths.Add(filename, filepath); return(filepath); }
public string GetFilePath(string filename) { string f; if (CSVPrefix.Equals("")) { f = filename; } else { f = CSVPrefix + "_" + filename; } return(Path.Combine(CSVFolder, f)); }