Skip to main content

api.move()

View Source: move

function move(fileId, newPath): Promise<{
newPath: string;
success: boolean;
}>;

Description

Move a file to a different location.

Sample Code

TypeScript Example:

// Example usage of api.move()
const result = await api.move();
console.log(result);

Parameters

fileId

string

The unique identifier of the file

newPath

string

The destination path

Returns

Promise<{ newPath: string; success: boolean; }>

Promise resolving to move confirmation