Lars Haugseth
6/8/2009 11:38:00 AM
* Luca Scatigno <skatz82@gmail.com> 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
--
Lars Haugseth