I am pretty sure get-modes 'filemodes is not supported
for network ports.
So the quick answer is: use another ftp client which can
chmod the file for you.

Patching FTP handler: Mmm.. a first step would be patching
it so we can insert arbitrary commands (eg. SITE CHMOD 755 ... 
or SITE HELP) into the command port to see what the results
are like for different ftp servers.

After that, we look for the "common idea" and make a dialect
for it in the FTP scheme spec.

Just a few thoughts...

Anton.

> Hi all,
> 
> I'm trying to read file modes via FTP but without success.  This 
> for instance...
> 
> get-modes ftp-url-to-a-file 'file-modes
> 
> just returns the following error...
> 
> ** Script Error: get-modes expected target argument of type: file 
> url block port
> ** Near: system/words/get-modes port/sub-port modes
> 
> The target URL's fine, (I can download the file using it), but I 
> can't get the file modes.
> 
> I'm wanting to set file permissions, but going by old 
> mailing-list threads, there's problems with this via FTP.  There 
> is this though...
> 
> http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlGMGQ
> 
> which suggests it can be done, but it pre-dates the current FTP 
> patch by quite a bit (I assume) and is pretty specific.
> 
> So, am I doing something wrong above, or is this something that 
> can't easily be done with REBOL?
> 
> -- Carl Read.

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to