Execute Condition using PowerShell

Hi, I want to check for the existence of a folder before running a build step.
I added a simple:
Test-Path ‘C:\some\path’ which of course works as expected in a PowerShell.

However, in FinalBuilder 8, the condition always evaluates to True, regardless of the path provided.

Any Ideas?

Cheers,
Tomas

Hi Thomas

It’s a bug. I’m not sure when this started happening, but the powershell api was returning a different object to what we were previously expecting. This build has the fix

https://downloads.finalbuilder.com/downloads/finalbuilder/800/FB800_2791.exe

Note that another option is the If File/Folder Exists action.

https://wiki.finalbuilder.com/display/FB8/Check+If+File+or+Folder+Exists+Action