Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 788 Bytes

bitburner.ns.ls.md

File metadata and controls

33 lines (19 loc) · 788 Bytes

Home > bitburner > NS > ls

NS.ls() method

List files on a server.

Signature:

ls(host: string, substring?: string): string[];

Parameters

Parameter Type Description
host string Hostname of the target server.
substring string (Optional) 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.