Refactor ls

This commit is contained in:
omuretsu
2023-03-07 08:04:08 -05:00
parent 0442f3d5e9
commit c2cd5845b2
4 changed files with 19 additions and 71 deletions

View File

@@ -5592,10 +5592,10 @@ export interface NS {
* (as strings). The returned array is sorted in alphabetic order.
*
* @param host - Hostname of the target server.
* @param grep - A substring to search for in the filename.
* @param substring - A substring to search for in the filename.
* @returns Array with the filenames of all files on the specified server.
*/
ls(host: string, grep?: string): string[];
ls(host: string, substring?: string): string[];
/**
* List running scripts on a server.