diff --git a/BasicNodes/File/Renamer.cs b/BasicNodes/File/Renamer.cs index 34085135..7612c314 100644 --- a/BasicNodes/File/Renamer.cs +++ b/BasicNodes/File/Renamer.cs @@ -62,13 +62,12 @@ newFile = Regex.Replace(newFile, @"\s(\.[\w\d]+)$", "$1"); newFile = newFile.Replace(" \\", "\\"); - string destFolder = DestinationPath; + string destFolder = args.ReplaceVariables(DestinationPath ?? string.Empty, stripMissing: true); if (string.IsNullOrEmpty(destFolder)) destFolder = new FileInfo(args.WorkingFile).Directory?.FullName ?? ""; var dest = args.GetSafeName(Path.Combine(destFolder, newFile)); - args.Logger?.ILog("Renaming file to: " + dest.FullName); if (string.IsNullOrEmpty(CsvFile) == false)