os.Path.copy() copies an existing file to create a new one:
CALL os.Path.copy(source_file, dest) RETURNING result
where:
When you specify a file name, be careful with its case.
UNIX is case-sensitive, so it will treat files which names come in different cases as separate files.
Here is an example of the method calling:
#copies the file "file_1.txt" from " C:\New folder" to " C:\" with the same name
CALL os.Path.copy("C:\\Files\\file_1.txt","C:\\file_1.txt") RETURNING result1
#copies the file "file_1" from "C:\New folder" to " C:\" with the name changed to 'file_2.txt'
CALL os.Path.copy("C:\\Files\\file_1.txt","C:\\file_2.txt") RETURNING result2