Tim Hunter wrote: > an an wrote: >> >> I have tried several different variations, of backtick, single quotes, >> double quotes, etc, etc....even tried deleting a single file, and it >> always gives me the same error. Also tried rm_r, rm_rf...still no luck. >> >> could someone explain to me what I am doing wrong? thanks! > > It looks like you're trying to remove all the files in the directory at > once. Bear in mind that FileUtils.rm wants a _list_ of filenames, not a > pattern to match. You can specify a list of filenames by accumulating > them in an array and then using the splat operator: > > filenames = whatever it takes to get all the filename in an array > FileUtils.rm(*filenames) that makes much more sense. what threw me off was the * in the following line in the rdoc FileUtils.rm Dir.glob('*.so') Did some reading up on Dir.glob and it makes much more sense now. Thanks! -- Posted via http://www.ruby-forum.com/.