On Wednesday 22 December 2004 02:14 pm, you wrote: | -----BEGIN PGP SIGNED MESSAGE----- | Hash: SHA1 | | trans. (T. Onoma) wrote: | > FileUtils.mv( @dir, ".trash/" ) | > | > Could someone please show me why am I apparently so stupid. | | I don't think it's smart enough to make subdir for you. Try: | FileUtils.mv(@dir, File.join('.trash', File.basename(@dir))) Thanks. That almost works. But the oddest thing happens. If @dir already exists, it moves it to @dir/@dir. If @dir/@dir already exists it bombs. I can't figure out why and am starting to think its a bug with #mv. T.