From: Martin Martinos Date: 2006-11-08T07:44:42+09:00 Subject: Re: How to copy a file to a non existing directory ? Michael Fellinger wrote: > On 11/8/06, Martin Martinos wrote: >> Is there a way to copy a file to a directory that does not exist ? If I >> try >> >> require 'fileutils' >> > > FileUtils.mkdir_p(File.dirname('c:/mart/martin.txt') Thanks for your helps it works fine. -- Posted via http://www.ruby-forum.com/.