20 lines
399 B
Plaintext
20 lines
399 B
Plaintext
:sig
|
|
StringList ls(String path)
|
|
|
|
:params
|
|
path : a filesystem path
|
|
return value : list of directory entries
|
|
|
|
:see
|
|
>sys
|
|
|
|
:content
|
|
Returns a list of files and subdirectories within `path`.
|
|
|
|
This is a simple directory listing helper for filesystem-oriented tasks.
|
|
|
|
Related:
|
|
|
|
- PHP: `scandir()`, `glob()`, or `DirectoryIterator`
|
|
- JavaScript / Node.js: Node `fs.readdirSync()` or `fs.promises.readdir()`
|