Re: SSL Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Sorry, that should have been

if find('*', filename) or find('?', filename) then return 0 end if


It checks for wildcards on the filename, since
file_type("c:\ab?c") would not make sense if there is a directory
called c:\ab1c and a file called c:\ab2c.

I didn't realize it after using it for about 2 years.
Thank you very much!

K> posted by: Ken Orr <orr_kenneth at yahoo.ca>

K> Hi,

K> The fuction file_type in the SSL.E has the following line:

K> }}}
<eucode>
K>   if find('*', filename) or find('*', filename) then return 0 end if
K> </eucode>
{{{


K> What is the purpose of the second find?  Isn't it redounded?

K> Ken

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu