DOCUMENTATION: Clarify ns.scp and ns.isRunning (#2769)

This commit is contained in:
catloversg
2026-05-17 01:52:14 +07:00
committed by GitHub
parent 42a3cbfa47
commit 6fcdb46888
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ Check if a script is running.
**Signature:**
```typescript
isRunning(script: FilenameOrPID, host?: string, ...args: ScriptArg[]): boolean;
isRunning(script?: FilenameOrPID, host?: string, ...args: ScriptArg[]): boolean;
```
## Parameters
@@ -42,7 +42,7 @@ script
</td><td>
Filename or PID of script to check. This is case-sensitive.
_(Optional)_ Filename (case-sensitive) or PID of script to check. Optional, default to the current script's pid.
</td></tr>
+2 -2
View File
@@ -42,7 +42,7 @@ string \| string\[\]
</td><td>
Filename or an array of filenames of script/literature files to copy. Note that if a file is located in a subdirectory, the filename must include the leading `/`<!-- -->.
Filename or an array of filenames of text/script/literature files to copy. Note that if a file is located in a subdirectory, the filename must include the leading `/`<!-- -->.
</td></tr>
@@ -90,7 +90,7 @@ True if the file is successfully copied over and false otherwise. If the files a
RAM cost: 0.6 GB
Copies a script or literature (.lit) file(s) to another server. The files argument can be either a string specifying a single file to copy, or an array of strings specifying multiple files to copy.
Copies text, script or literature (.lit) file(s) to another server. The files argument can be either a string specifying a single file to copy, or an array of strings specifying multiple files to copy.
## Example 1