method

cd

v1_8_7_330 - Show latest stable - Class: FileUtils
cd(dir, options = {})
public

Options: verbose

Changes the current directory to the directory dir.

If this method is called with block, resumes to the old working directory after the block execution finished.

FileUtils.cd('/', :verbose => true)   # chdir and report it