trouble with oFTP:directory()

trouble with oFTP:directory()

Postby NK » Thu Aug 31, 2006 2:33 pm

Hallo Fivewinners,

I have a problem with ftp:Directory()


Code: Select all  Expand view  RUN
      aFiles := {}
      aFiles = oFTP:Directory( "/*.*")
      LogFile( "FTP.LOG", Str(Len(aFiles))+" Files on ftp-Server found" )
      for _I = 1 to len(afiles)
          LogFile( "FTP.LOG", Alltrim(afiles[_I,1])+ " Size: "+Str(aFiles[_I,2]) )
      next _I


the result (testet with FWH Aug. 2006 and xHarbour Aug. 2006)

Code: Select all  Expand view  RUN
31.08.06 16:23:36: FTP-Session startet.
31.08.06 16:23:37:         59 Files on ftp-Server found   
31.08.06 16:23:37: ANIMA.XLS C : \ W I N D O W S \ S y s t e m 3 2 \ W b e m ; C : \ P r o g r a m m e \ I n t e l \ D M I X ; C : \ P r o g r a m m e \ M i c r o s o f t   S Q L   S e r v e r \ 8 0 \ T o o l s \ B I N N ; C : \ P r o g r a m m e \ S y m a n t e c \ p c A n y w  Size:     306688   
31.08.06 16:23:37: artikelfull.csv                                                                                         Xq                                                                                                                                                          Size:    5981919   
31.08.06 16:23:37: artikelfull.xls              5981919 artikelfull.csv
08-31-06  05:17AM             15504384 artikelfull.xls
08-30-06  04:31AM               449292 artikelliste.csv
08-30-06  04:31AM               449292 Artikelliste.txt
08-30-06  04:31AM              11653 Size:   15504384   
31.08.06 16:23:37: artikelliste.csv 6  04:31AM               529408 Artikeltexte.xls
08-31-06  05:45AM              4091102 artikelzusatztext_web_html.csv
08-31-06  05:45AM             10226176 artikelzusatztext_web_html.xls
08-31-06  05:45AM              4078828 artikelzusat Size:     449292   
31.08.06 16:23:37: Artikelliste.txt plaintext.csv
08-31-06  05:45AM              5049344 artikelzusatztext_web_plaintext.xls
08-31-06  05:45AM              3327442 artikelzusatztexte_web.csv
08-31-06  05:45AM             11791872 artikelzusatztexte_web.xls
08-31-06  05:45AM Size:     449292   
31.08.06 16:23:37: Artikelliste.xls 419776 AURA.XLS
07-14-06  11:15AM                69120 AURA2.XLS
08-31-06  05:45AM                10752 bestseller.xls
08-25-06  01:30PM                27648 DISPLAYS.XLS
01-13-06  12:57PM               269827 Fachhandel E KW03-04.pdf
06- Size:    1165312   
31.08.06 16:23:37: artikelliste_DAP_CHF.xls             1581 feldbeschreibung artikelliste.txt
04-18-06  09:46AM                  173 feldbeschreibung zubehoerartikel.txt
06-08-05  08:03AM                 1037 hilfe zu artikelzusatztexte web.txt
01-03-06  10:24AM Size:   10494464   


Does someone have an idea?

Best Regards
Norbert
User avatar
NK
 
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany

Postby Antonio Linares » Fri Sep 01, 2006 10:35 pm

Norbert,

The problem is that you are getting extra info on aFiles[_I,2], right ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby NK » Sat Sep 02, 2006 4:29 pm

Antonio Linares wrote:Norbert,

The problem is that you are getting extra info on aFiles[_I,2], right ?


yes, normaly element 1 = Filename, element 2 = Filesize

Best regards, Norbert
User avatar
NK
 
Posts: 97
Joined: Sun Nov 20, 2005 4:32 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: MarcoBoschi, nageswaragunupudi, Willi Quintana and 55 guests