Modules
Objects/Functions
SuiteScript 2.0
{Connection}.move({from: {String},to: {String}})
N/sftp Module
Connection.move()
Method Description:
Moves a file or directory from one location to another.
Returns:
void
Supported Script Types:
Server-side scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
10 units
Module:
N/sftp Module
Since:
2019.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Connection.move(options)
Example:
// Code Example 1
// Add additional code ...
objConnection.move({
from: 'relative/path/to/remote/dir',
to: 'relative/path/to/remote/dir/new',
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1557234961.html