From: Luca Scatigno Date: 2009-06-08T21:09:57+09:00 Subject: Re: Change file permissions via FTP Lars Haugseth wrote: > * Luca Scatigno wrote: >> >> Hi, >> >> I have to upload a file via FTP and then change its permissions, i'm >> using >> net/ftp but i don't know how to change the perms. >> How can I do that? > > Not tested, but have you tried something like this? > > Net::FTP.open(host) do |conn| > < login/chdir/upload code here > > response = conn.sendcmd("SITE CHMOD 0664 #{filename}") > end Thanks Lars, I've tried your suggestion and it works. It solved my problem. -- Posted via http://www.ruby-forum.com/.