ftp: how to prevent access to file currently being accessed?

tkuypers at pandora.be tkuypers at pandora.be
Thu Nov 21 10:37:01 EST 2002

Get the filesize of the file
Get the filesize of the same file 1 second later

If both of them are the same then it is complete, otherwise chack the
filesize again...

This should work


> From: Oliver Hardt <hardt at u.arizona.edu>
> Reply-To: use-revolution at lists.runrev.com
> Date: Thu, 21 Nov 2002 08:18:49 -0700
> To: use-revolution at lists.runrev.com
> Subject: ftp:  how to prevent access to file currently being accessed?
> hello:  i really have not much knowledge about how ftp works, so
> forgive the question in case it was just too obvious.
> problem:  a file is kept on a ftp-server.  this file is being
> accessed by n clients, and all clients will modify the file and
> upload it to the server.
> question: how can i monitor from the client side whether the
> file is currently being used by another client, so that the it is not
> accessed until the  currently accessing client finished uploading?
> thank you!  best, oliver hardt.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution

More information about the Use-livecode mailing list