cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Prevent copy service from overwriting existing file?

jmay1
5-Regular Member

Prevent copy service from overwriting existing file?

I have a file transfer mashup with file transfer capabilities to and from an edge thing, and currently if the file exists in the target directory and the user copies (transfers) a file of the same name, it will automatically overwrite the existing file. I'd like to either give the user the option to overwrite an existing file or to just rename the file with a "copy" or something on the end, similar to the way windows handles a situation of copying an existing file to a folder.

1 REPLY 1
PaiChung
22-Sapphire I
(To:jmay1)

You will need to write a Service that checks these permutations before doing the copy.

Top Tags