Script Library: 1238 scripts


Rebol [ Title: "Upload all files in a directory with FTP" Date: 20-Jul-2003 File: %oneliner-ftp-upload-dir.r Purpose: {Uploads all the files in a directory using FTP. Files can be text, images, web pages, anything... but not directories.} One-liner-length: 111 Version: 1.0.0 Author: "RT" Library: [ level: 'beginner platform: none type: [How-to FAQ one-liner] domain: [ftp] tested-under: none support: none license: none see-also: none ] ] foreach file load %./ [if not dir? file [write/binary join ftp://user:%pass--example--com/ file read/binary file]]
halt ;; to terminate script if DO'ne from webpage
  • Sorry -- could not color this script. The script is probably written for a later version of REBOL than the current CGI handler used by the Library,
  • email address(es) have been munged to protect them from spam harvesters. If you are a Library member, you can log on and view this script without the munging.
  • (pass:example:com)