Temporary filename during transfer - WeOnlyDo Discussion board

Temporary filename during transfer (General questions)

by DaveMolloyKett, Tuesday, July 26, 2011, 16:34 (4867 days ago)

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

by wodDamir, Tuesday, July 26, 2011, 16:45 (4867 days ago) @ DaveMolloyKett

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

by DaveMolloyKett, Tuesday, July 26, 2011, 17:05 (4867 days ago) @ wodDamir

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

by wodDamir, Tuesday, July 26, 2011, 17:30 (4867 days ago) @ DaveMolloyKett

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

by DaveMolloyKett, Wednesday, July 27, 2011, 11:36 (4867 days ago) @ wodDamir

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.