Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
What function do I call to move a file from one repository to another. I have tried 'MoveFile', but that only seems to work when moving files from directory to another inside the same repository. I want to utilise the same functionality that can be accessed through the backend GUI in the repositories from within my service. Is this possible?
Solved! Go to Solution.
Use the following service...
FileTransferSubsystem > Copy
.
// result: INFOTABLE dataShape: "FileTransferJob"
let result = Subsystems["FileTransferSubsystem"].Copy({
async: undefined /* BOOLEAN */,
sourceRepo: undefined /* STRING */,
metadata: undefined /* JSON */,
targetRepo: undefined /* STRING */,
targetFile: undefined /* STRING */,
targetPath: undefined /* STRING */,
queueable: undefined /* BOOLEAN */,
sourceFile: undefined /* STRING */,
sourcePath: undefined /* STRING */,
timeout: undefined /* INTEGER */
});
Use the following service...
FileTransferSubsystem > Copy
.
// result: INFOTABLE dataShape: "FileTransferJob"
let result = Subsystems["FileTransferSubsystem"].Copy({
async: undefined /* BOOLEAN */,
sourceRepo: undefined /* STRING */,
metadata: undefined /* JSON */,
targetRepo: undefined /* STRING */,
targetFile: undefined /* STRING */,
targetPath: undefined /* STRING */,
queueable: undefined /* BOOLEAN */,
sourceFile: undefined /* STRING */,
sourcePath: undefined /* STRING */,
timeout: undefined /* INTEGER */
});