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?
Should I use another library?
Thanks in advance.
Luca
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?
Should I use another library?
Thanks in advance.
Luca
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 H. wrote:
- Luca S. [email protected] 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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs