Hi All,
I want to copy a video file from source location and paste it to some
destination. I used below code but I think it only supports text files:
require ‘fileutils’
FileUtils.cp(‘source’, ‘destination’)
Help me out.
Thanks in advance
Saurabh.
Hi All,
I want to copy a video file from source location and paste it to some
destination. I used below code but I think it only supports text files:
require ‘fileutils’
FileUtils.cp(‘source’, ‘destination’)
Help me out.
Thanks in advance
Saurabh.
Saurabh P. wrote:
Hi All,
I want to copy a video file from source location and paste it to some
destination. I used below code but I think it only supports text files:
But you are wrong.
require ‘fileutils’
FileUtils.cp(‘source’, ‘destination’)
Help me out.
That should work.
Thanks in advance
Saurabh.
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Marnen Laibow-Koser wrote:
Saurabh P. wrote:
Hi All,
I want to copy a video file from source location and paste it to some
destination. I used below code but I think it only supports text files:But you are wrong.
require ‘fileutils’
FileUtils.cp(‘source’, ‘destination’)
Help me out.
That should work.
Thanks in advance
Saurabh.
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Hi Marnen,
Thanks for the reply, got the error, above FileUtils.cp command is
working properly, my pathname was incorrect.
Thanks for replying
Saurabh.
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