wildcard with exists?

Richard Kreiss rkreiss at gccconsulting.net
Tue Mar 22 08:49:24 PDT 2011


> >>> Scott,
> >>>
> >>> Are you sure that exists() is looking in the correct place for this
> > file?
> >>> You might try setting:
> >>>
> >>> 	fs=chr("47")
> >>> 	qq=fs{"pathname"{fs{"file*.txt" {""
> >>>
> >>> Using the debugger see of the path resolves correctly.
> >>>
> >>> You could also do a system called using the path to see if you are
> >>> actually looking in the correct place before
> >>>
> >>> 	E=exists(qq)
> >>>
> >> Thanks for the reply and idea.  I tried the code you supplied above,
> >> and
> > it still
> >> does not see the file using the * for part of the filename.
> >>
> >> BTW, I am on SCO OpenServer 6 with filePro 5.014
> >>
> >> Scott
> > An * usually means a wild card or all matching.  Since exists() may be
> > looking for a specific file name, it may not accept an asterisk as a
> > single file name.
> >
> > Try replacing the * with a letter (fileA.txt) and then see if exists()
> > finds that file.
> >
> > Richard
> >
> >
> 
> Replacing with the exact file name works.

So, can you use exist() now to test for the existence of your file?

Richard
 




More information about the Filepro-list mailing list