mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
757 B
757 B
NS.ls() method
Returns an array with the filenames of all files on the specified server (as strings). The returned array is sorted in alphabetic order.
Signature:
ls(host: Host, grep?: string): string[];
Parameters
Parameter | Type | Description |
---|---|---|
host | Host | Host or IP 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
0.2 GB