Function: file.Move

Moves a file or folder.

Syntax

{
	"method": "file.Move",
	"params": {
		"file": "...",
		"dest": "...",
	},
	"id": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
AdvFuture<bool> Move( AdvString file, AdvString dest );
public Task<bool> MoveAsync(string file, string dest, CancellationToken ct = default);
move(file: string, dest: string): Promise<boolean>;

Parameters

file : string

File or folder as path or id.

dest : string

If id this can only be a folder, the ‘file’ will be put inside. If path, works like move in windows file system

Result : bool

True if successful.

Remarks

This method requires API write access.