Thanks for your idea Ehsan. I would love to do this. The only problem is that the directory is being written by multiple computers/users at the same time, and some of the files are being used as a lock to tell who is allowed access to the rest of the files at the current time. Therefore the files will be constantly coming and going and we need to constantly re-query the directory.
Brian > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Ehsan Akhgari > Sent: Wednesday, March 10, 2004 2:02 PM > To: [EMAIL PROTECTED] > Subject: RE: [msvc] FTP delays > > > > Do any of you guy know why doing FTP deletes, on some FTP servers > > might take 30 seconds to show up as taking place where other servers > > happen immediately. Even on the servers that take 30 seconds, if I > > delete the file via IE, it happens immediately. The problem > is that I > > am running a loop and if the file shows up the next time I loop > > through, it causes problems. Or do any of you have a better way of > > doing file FTP file deletes than what I am doing? Any help I can get > > solving this would be much appreciated. A simplified version of the > > code I am using follows: > > I don't know of any way, but here's a simple idea. First > build a list of > the files inside the directory in memory, and then remove the > files you > command to delete from that list, and don't re-query the FTP > directory. > > ------------- > Ehsan Akhgari > > Farda Technology (http://www.farda-tech.com/) > > List Owner: [EMAIL PROTECTED] > > [ Email: [EMAIL PROTECTED] ] > [ WWW: http://www.beginthread.com/Ehsan ] > > That time does not run backward - that is its animosity: > "That which was": > so is the stone which it cannot roll called. > -Thus Spoke Zarathustra, F. W. Nietzsche > > > > > _______________________________________________ > msvc mailing list > [EMAIL PROTECTED] > See > http://beginthread.com/mailman/listinfo/msvc_beginthread.com > for subscription changes, and list archive. >
