WaitOnFileExStep, IncludeOldFiles

Jul 3, 2009 at 5:32 PM
Edited Jul 3, 2009 at 5:41 PM

I'm not sure what is the intended behaviour, but if I set IncludeOldFiles option on then following happens in Execute method:


if ((Directory.GetFiles(Path).Length > 0) && (IncludeOldFiles == "Y"))
  // Set newFilename and newFilePath with the earliest file
  string[] items = Directory.GetFileSystemEntries(Path, "*.xml");
  foreach (string item in items)
     context.Add("DetectedFileFullName", item, true);
     context.Add("DetectedFileName",System.IO.Path.GetFileName(item), true);



-FileFilter option is not used when finding files from the folder, only xml files are accepted

-Execute method then returns in any case, whether it found a file or not (doesn't use FileSystemWatcher, skips Delete option)


Jul 3, 2009 at 6:38 PM


Thanks for flagging this up. I will look into it and issue a fix as soon as possible



Jul 3, 2009 at 6:39 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.