Iterator (and recursive delete files) gets path wrong

Using FinalBuilder 7.0.0.1795

I have an iterator set to iterate $(Base)/XMLTests/NewXML/*.xml, and set that to variable CurrentFile

I have ‘include path when setting variable’ checked.

This variable ends up with a random location instead of the correct path, making this function unusable.

Putting a log inside this iterator block shows the problem - it shows

CurrentFile = D:\Rps\3x3LightOakOnWhiteEdWithRoofVents.xml

Which is completely wrong (it’s not even $(Base) or the project directory… it’s apparently random). This causes all subsequent actions to fail.

The ‘Delete File(s)’ action behaves in the same way, blowing up with a file does not exist error every time.

As the file list is currently fixed I’ve worked around it by adding a hard coded entry for each file, but that’s not a good solution for the future.

Tony

Hi Tony

Add a variable watch and step through the project to see what the value of Base is. If you send your project to support@finalbuilder.com then I can take a look and see what is happening.