Re: ftp file busy?
Re: ftp file busy?
- Subject: Re: ftp file busy?
- From: Andrew Farmer <email@hidden>
- Date: Mon, 7 Aug 2006 22:34:41 -0700
On 07 Aug 06, at 20:32, Jeff Schindler wrote:
I have an application in which it monitors a particular folder for
new files and processes them. In one particular case, the files
are being sent to the folder via FTP - I'm checking to see if the
files are busy (NSFileBusy) before trying to read them, but in the
case of FTP, it says they aren't busy. Is there another way to
check for an incomplete file for the FTP case? These are actually
JPEG image files, so one option is to parse the headers, get the
image dimensions and compare to the file size - but I was hoping
there was an easier way to handle this. Thanks.
FTP doesn't have any concept of "file in use". Parse away.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden