Symisc Systems

Libcox Command Reference


Star Follow @symisc

Command Syntax

ls [Directory]


Alias

List


Description

Return an array holding the entries (files, directories, etc.) of the given directory. If none is specified, the current working directory is used for listing.


Parameters

directory

Optional parameters: Target directory.


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.