Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

glob pattern [Directory]


Alias

None


Description

Similar to the ls command, but return-only pathnames matching a pattern. Example: Return only text files: glob "*.txt" "C:\\Users\\james\\Desktop"


Parameters

pattern

Apply this pattern according to the rules used by the shell.

directory

Optional parameters: Target directory. If none is specified, the current working directory is used for listing.


Return Value

Array: Directory listing on success or FALSE on failure. Use libcox_array_next_elem() or libcox_array_walk() to iterate over the array elements, libcox_array_fetch() or libcox_array_fetch_by_key() to extract array entries by indexes or keys.