Author | Topic: FTP Directory | |
---|---|---|
Stephan Koenig | FTP Directory on Sun, 22 May 2005 22:36:38 -0400 I have FTP Access to a server that has a huge inventory file for me. I need to download that automated. I do this using oftp:get("\\invntory\invntory.exe") after I opened the connection. This works fine. I need to find out when the file is updated. I could do that by the file date on the server, but I have no idea how to get the directory data. I could also juts load the fist few bytes from the file, that has also a date. But I do not know how to only load a few bytes. The full download takes several minutes, so that is not an option. ANY HINTS OR IDEAS ? | |
Phil Ide | Re: FTP Directory on Mon, 23 May 2005 11:16:42 +0100 Stephan, > I have FTP Access to a server that has a huge inventory file for me. I need > to download that automated. > > I do this using oftp:get("\\invntory\invntory.exe") after I opened the > connection. This works fine. > > I need to find out when the file is updated. I could do that by the file > date on the server, but I have no idea how to get the directory data. > > I could also juts load the fist few bytes from the file, that has also a > date. But I do not know how to only load a few bytes. > > The full download takes several minutes, so that is not an option. > > ANY HINTS OR IDEAS ? Take a look at my FTP client class, this will allow you to do all the things you just requested. Regards, Phil Ide *************************************** * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * *************************************** It's fabulous! We haven't seen anything like it in the last half an hour! -- Macy's |