file-glob

Sven Neumann

Description

Returns a list of matching filenames

Help

This can be useful in scripts and other plugins (e.g., batch-conversion). See the glob(7) manpage for more info. Note however that this isn't a full-featured glob implementation. It only handles simple patterns like "/home/foo/bar/*.jpg".


Type

unknown

Parameters

Type Name Description
PF_VALUE pattern The glob pattern (in UTF-8 encoding)
PF_INT encoding Encoding of the returned names: { UTF-8 (0), filename encoding (1) }

Return

Type Name Description
PF_INT num-files The number of returned names
unknown files The list of matching names