Checking if a file has copied completly

Derek Bump list at dreamscapesoftware.com
Wed May 30 11:59:02 EDT 2007


> Is there anyway in RunRev to check if the file has been completely copied?

I'm unaware of any specific command to do what you want, but what you
may try is to have your app check the size of the file over a duration
of time, like 5 or 10 seconds, to see if it's file size changes.  If it
does change, then the file is still being copied.  If it doesn't, then
it should be done.

Granted, this doesn't account for network lag time, but it should do the
trick.


Derek Bump
Dreamscape Software

____________________________________________
Compress photos easily with JPEGCompress
www.dreamscapesoftware.com




Dave wrote:
> Hi,
> 
> I have an App that scan a "hot" folder looking for input files. This
> works fine if the file being dragged into the folder is on the local
> machine (since it just does a move of the file). However if a file is
> dragged from another machine on the LAN (and it's Copied), the App sees
> the file as soon as it appears in the Folder and starts processing a
> partial file.
> 
> My question is:
> 
> Is there anyway in RunRev to check if the file has been completely copied?
> 
> Any other suggestions on how to get around this problem would be greatly
> appreciated.
> 
> All the Best
> Dave
> 
> _______________________________________________
> 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