curb
curb copied to clipboard
Cannot delete file from remote directory
Hi,
I am using curb-0.8.5 gem. I was trying something like
c=Curl::Easy.new url do |curl|
some parameter settings
end c.set(:customrequest,'dele') c.perform
But instead of deleting the file it downloaded the file. Is this the correct way to perform deletion? Is there any other way?
Thanks, Rushi
I think you want to use Curl.delete(url)
Thank you.
I got it resolved. I used obj.ftp_commands=["DELE filename" ] followed by obj.perform.
Thanks, Rushi