Re: File Locking
From: Barry Margolin (barry.margolin@level3.com)
Date: 04/15/03
- Previous message: Joe Durusau: "Re: File Locking"
- In reply to: Gilles Vautour: "File Locking"
- Next in thread: Kenny McCormack: "Re: File Locking"
- Reply: Kenny McCormack: "Re: File Locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: Barry Margolin <barry.margolin@level3.com> Date: Tue, 15 Apr 2003 15:51:33 GMT
In article <b7h80e$8rr$1@freenet9.carleton.ca>,
Gilles Vautour <ae244@FreeNet.Carleton.CA> wrote:
>We have a situation where a script collects files uploaded via FTP.
>However, we have noticed that when the upload is slow, the script may
>consider the file upload complete and move the file. We believe the
>problem to be related to file locking
Ftpd doesn't do any file locking at all. What makes you think it's related
to this?
What criteria does the script use to determine if the upload is complete?
Ftpd creates the file as soon as the upload starts, and doesn't provide any
way to tell when it's done.
The usual recommendation is to upload the file to a temporary name, and
then have the client rename it when it's done. That way, the file that the
script looks for won't exist at all until the upload is complete.
-- Barry Margolin, barry.margolin@level3.com Genuity Managed Services, a Level(3) Company, Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Previous message: Joe Durusau: "Re: File Locking"
- In reply to: Gilles Vautour: "File Locking"
- Next in thread: Kenny McCormack: "Re: File Locking"
- Reply: Kenny McCormack: "Re: File Locking"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|