Quote:
Originally Posted by BetterRed
I want to show an icon if the data folder contains a file named todo.???? (might be ToDo.txt, TODO.EML, todo.stky, etc).
Something like extra_file_exists("todo.*") might be useful.
BR
|
The changed has_extra_files() that takes an optional regexp does what you want, returning a count of files that match the pattern. For example:
Code:
program:
if has_extra_files('^todo\.') then "icon.png" fi