mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 15:12:27 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
767 B
767 B
NS.ls() method
List files on a server.
Signature:
ls(host: string, grep?: string): string[];
Parameters
Parameter | Type | Description |
---|---|---|
host | string | Host of the target server. |
grep | string | A substring to search for in the filename. |
Returns:
string[]
Array with the filenames of all files on the specified server.
Remarks
RAM cost: 0.2 GB
Returns an array with the filenames of all files on the specified server (as strings). The returned array is sorted in alphabetic order.