SyntaxFix
Write A Post
Hire A Developer
Questions
Files.move(source, target, REPLACE_EXISTING);
You can use the Files object
Files
Read more about Files