[Gambas-user] Exist with wildcard

Rolf-Werner Eilert rwe-sse at osnanet.de
Wed Aug 4 10:59:39 CEST 2021


That would mean, the answer could be anything from 0 to n. In this case, 
why not simply make a list of all occurrences of files with the 
wildcard, and then "if list.count > 0 then"...


Regards

Rolf


Am 04.08.21 um 10:16 schrieb bb:
> I am trying to determine if a particular library has been installed in
> a particular diectory.
>
> I was sure Exist(path) took wildcards into account, but it doen't seem
> so.  Any ideas on how to do a wildcard search for a file then?
>
> e.g. I am looking for "ph.internals:*.gambas" in "/srv/gbshared/lib".
> The actual file is "ph.internals:1.0.gambas" i.e. it has the library
> version included in it, but I don't know WHAT version I am looking for.
>
> tia
> bruce
>
>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>


More information about the User mailing list