mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
Add support for the mv command in NS
This commit is contained in:
20
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
20
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -5813,6 +5813,26 @@ export interface NS extends Singularity {
|
||||
*/
|
||||
atExit(f: () => void): void;
|
||||
|
||||
/**
|
||||
* Move a file on the target server.
|
||||
* @remarks
|
||||
* RAM cost: 0 GB
|
||||
*
|
||||
* NS2 exclusive
|
||||
*
|
||||
* Move the source file to the specified destination on the target server.
|
||||
*
|
||||
* This command only works for scripts and text files (.txt). It cannot, however, be used
|
||||
* to convert from script to text file, or vice versa.
|
||||
*
|
||||
* This function can also be used to rename files.
|
||||
*
|
||||
* @param host - Host of target server.
|
||||
* @param source - Filename of the source file.
|
||||
* @param destination - Filename of the destination file.
|
||||
*/
|
||||
mv(host: string, source: string, destination: string): void;
|
||||
|
||||
/**
|
||||
* Parse command line flags.
|
||||
* @remarks
|
||||
|
||||
Reference in New Issue
Block a user