Check if File exists bug?

Hello, Since I upgraded this morning to 4.1, When checking if fileexists, I keep getting a ‘File or Folder Does not exist’ error - eventhough the files are present. If I re-install the previous 4.0version, it works again.
Do I need to set a variable if the file exists?

Is this a known issue?

Thanks
Michelle

Hi Michelle,

Sorry to hear you’re having problems.

Unfortunately, that action hasn’t changed since FinalBuilder 4.0. I just tested it in 4.1 here and it seems to work. It is mildly annoying that it doesn’t print the file name in the log, though - I’ll look into fixing that.

Are you running the exact same action in 4.0 and 4.1? What file are you checking for?

Thanks,


Angus

Hi,
The particular action goes something like this:
Check if File Exists: %CurDBDestPath%*.mdf

and another one looking for
Check if File Exists: %CurDBDestPath%*.mdf

I am looking for MS SQL database files.

If I enter Check if File Exists: %CurDBDestPath%\Name.mdf
the file can be found, so it seems there the issue may be with the * wildcard?

Thanks,
Michelle

Posted By Michelle Buckley on 19 May 2006 11:03 AM

If I enter Check if File Exists: %CurDBDestPath%\Name.mdf
the file can be found, so it seems there the issue may be with the * wildcard?

Thanks,
Michelle



The Check if File Exists action does not support wildcards (will add that to the todo list). Another way to do what you want would be to use a FileSet. Add a Fileset action to select the files you want to test for, and then you can test for %FileSetName.Count% > 0 ins an If...Then Action.