mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-11 17:03:19 +01:00
15 lines
405 B
ReStructuredText
15 lines
405 B
ReStructuredText
ls() Netscript Function
|
|
=======================
|
|
|
|
.. js:function:: ls(hostname[, grep])
|
|
|
|
:RAM cost: 0.2 GB
|
|
:param string hostname: Hostname of the target server.
|
|
:param string grep: a substring to search for in the filename.
|
|
:returns: String array of all files in alphabetical order.
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
ls("home"); // returns: ["demo.script", "msg1.txt"] |