Dir.chdir( [ string] ) â 0Dir.chdir( [ string] ) {| path | block } â anObject
Class Public methods
Changes the current working directory of the process to the given string.
When called without an argument, changes the directory to the value of the
environment variable HOME, or LOGDIR.
SystemCallError (probably Errno::ENOENT) if the
target directory does not exist.
If a block is given, it is passed the name of the new current directory,
and the block is executed with that as the c