From: William James Date: 2007-07-29T07:14:58+09:00 Subject: Re: FileUtils in widows On Jul 28, 5:03 pm, Jonathan Dale wrote: > I am fairly new to ruby and am working with windows xp. I'm trying to > copy files from one directory to another using the FileUtils module. > When I run the program, I get a Permission Denied error (EACCES). Any > thoughts on how to get this to work? > > files.each do |f| > next if f == "." or f == ".." > FileUtils.copy(dir,newdir) You forgot to use f in this line. > end