bitburner-src/markdown/bitburner.ns.ls.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

757 B

Home > bitburner > NS > ls

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