[pmwiki-users] conditional for existence of a file?

Leigh Hausman leigh.hausman at qatar.tamu.edu
Tue Jul 5 03:25:43 CDT 2005


Is there a way to define a condition to test whether or not a file  
exists?

My goal is to display file attachments or a notation saying that  
there are no attachments, and the easiest way seemed to be to check  
whether or not the $UploadsDir/$Fullname directory exists... though  
I'm open to other suggestions, if someone has a better way.

Many thanks,
Leigh



More information about the pmwiki-users mailing list