Quote:
Originally Posted by ownedbycats
if it follows the same behaviour as annotation_count(), checking it >#0 should also work.
|
Yes, it will, but this is a touch slower if all you want to know is if some files exist. Same thing is true for annotation_count().
I am submitting these changes:
- has_extra_files([pattern]) -- returns the count of extra files, otherwise '' (the empty string). If the optional parameter 'pattern', a regular expression, is supplied then the list is filtered to files that match pattern before the files are counted. The pattern match is case insensitive. This function can be used only in the GUI.
- extra_file_names(sep [, pattern]) -- returns a sep-separated list of extra files in the book's '{}/' folder. If the optional parameter 'pattern', a regular expression, is supplied then the list is filtered to files that match pattern. The pattern match is case insensitive. This function can be used only in the GUI.