method
    
    chdir
 
  chdir(path = nil)
  public
  If called as iterator, it restores the current directory when the block ends.
 
  chdir(path = nil)
  public
  If called as iterator, it restores the current directory when the block ends.