Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] more ftp informations

From: etienne:alaurent:free at: 20-Jul-2001 0:55

Hi, Rebolers, I'm working on an ftp client for my app. I saw the doc for Core 5.1, and I'm not able to write a correct code do read the structure of my ftp directory. The code is : all-files: copy [] system/schemes/ftp/passive: true foreach file read to-url chemin [ print file append all-files file ] where chemin is somethinq like ftp://user:[pass--my--site--com]/dir where dir can be an empty string or the path to a subdir I can find in all-files. I want to know infos about all files in all-files (is a directory, time, size, ...). Can you tell me if this code is ok? and how can I obtain infos about a file? (I know the info? instruction, but I don't know how to use it) I tryed : ftp-port: open to-url chemin forall ftp-port [ file: first ftp-port info: info? file print [file info/date info/size info/type] append all-files file ] close ftp-port but it doesn't work. Why ? Thanks to anybody witch can answer me. --- Etienne