Dir.chdir(dest) do
# code that shall be executed while in the dest directory
end
Dir.chdir
when invoked with a block will change to the given directory, execute the block and then change back.
You can also use it without a block, in which case it will never change back.
sepp2k
2010-07-09 21:31:15