Temporary filename during transfer (General questions)
Hello
I am wondering whether there is a property or method in which controls the transfer of file using a temporary file name, with automatic renaming to its real name on completion?
(I'm sure this has been asked before, but could find nothing by searching, and see not reference to it in the manual.)
Many Thanks
D
Re: Temporary filename during transfer
Hi Dave,
Actually, component doesn't use temporary files unless PutData/GetData methods are used. Component will attempt to write to location specified in GetFile/PutFile location, and report an error if that's not possible.
Hope this helps.
Regards,
Damba
Re: Temporary filename during transfer
Ah. Okay, thanks for this.
As the files in question are quite large, it looks like I may have to write something myself, then, since your notes indicate PutData should only be used for small volumes of data.
Thank you, anyway.
Re: Temporary filename during transfer
Dave,
You would want it to write to temporary files?
Why not simply use GetFile to write to some temporary location, and then simply use API calls to move/rename file somewhere else?
Wouldn't that have the same effect?
Regards,
Damba
Re: Temporary filename during transfer
I almost certainly will. I just wanted to make sure I wasn't 'reinventing the wheel', if you know what I mean. I prefer to use any in-built functionality of a tool I am using.
Thanks for your help.