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

[REBOL] Re: Directory tools

From: jelinem1:nationwide at: 12-Apr-2001 9:16

Brett, Thanks for posting file-tools.r! I have been writing bits of it for myself as I needed them, and was currently balking at writing the directory-related functions (esp copying). I needed to modify the way that external code is included to use my own scheme, no problem. I added a /verbose refinement to copy-directory. I want to see what my script does to make sure it behaves itself! However, I'm getting the following error in mime-read. What is the purpose of adding /full at the end of what should already be the full file path?
>> retval: copy-directory/files/verbose %/d/html/eq/source/book-cod/
ftp://user:[password--members--home--net]/source/book-cod/ Copy Dir FROM: /d/html/eq/source/book-cod/ TO: ftp://user:[password--members--home--net]/source/book-cod/ - Copy file: about.r ** Script Error: Invalid path value: full ** Where: mime-read ** Near: read source-as-object/full - Michael Jelinek Brett Handley <[brett--codeconscious--com]> on 04/11/2001 09:09:39 PM From: "Brett Handley" <[brett--codeconscious--com]> on 04/11/2001 09:09 PM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: <[rebol-list--rebol--com]> cc: Subject: [REBOL] Directory tools Seeing Marcus' console tools post prompted me to post my file-tools.r script I've been working on recently. In this script I wanted some functions that would recursively work on directories whether they are file! or url!. Also in this script I played with the idea of generating script for deferred/custom actions based on reading a directory. Brett.