Identifying the end of a file transfer

Richard Miller wow at together.net
Thu May 18 18:58:04 EDT 2006


Good idea. Thanks.
Richard



On May 18, 2006, at 4:40 PM, Sarah Reichelt wrote:

> On 5/18/06, Richard Miller <wow at together.net> wrote:
>> I've got one stack sending a file out to server, and a separate stack
>> (on a separate machine) scanning the server for the availability of
>> that file. When it sees it, it needs to retrieve it from the server.
>>
>> Problem is, this second stack is seeing the availability of the file
>> BEFORE it has completely transferred onto the server. If it starts
>> retrieving it when it first sees it, well... the result isn't good.
>>
>> Is there any simple way for the second stack to know the file
>> transfer is complete before it starts accessing this file? I realize
>> I could have the first stack send a small "flag" file out to the
>> server after the original file was transferred, and the second stack
>> could wait until it sees that flag... but I'm wondering if there
>> isn't some easier way.
>
> Upload the file with a temporary name, then re-name it once it has
> completely uploaded. The rename should be virtually instant.
>
> Cheers,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list