bitburner-src/doc/source/netscript/basicfunctions/ls.rst
kalobkalob f9162e4d30
Update ls.rst (#734)
* Update ls.rst

Modified ram cost.

Co-authored-by: hydroflame <79246165+hydroflame@users.noreply.github.com>
2021-03-07 03:10:53 -05:00

12 lines
391 B
ReStructuredText

ls() Netscript Function
=======================
.. js:function:: ls(hostname/ip, [grep])
:param string hostname/ip: Hostname or IP of the target server
:param string grep: a substring to search for in the filename
: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