code: def chdir(self,
  	          path,
  	          timeout=shutit_global.shutit_global_object.default_timeout,
  	          note=None,
  	          loglevel=logging.DEBUG):
  		
  		shutit = self.shutit
  		shutit.handle_note(note, 'Changing to path: ' + path)
  		shutit.log('Changing directory to path: "' + path + '"', level=logging.DEBUG)
  		if shutit.build['delivery'] in ('bash','dockerfile'):
  			self.send(ShutItSendSpec(self,
  			                         send=' command cd "' + path + '"',
  			                         timeout=timeout,
  			                         echo=False,
  			                         loglevel=loglevel))
  		elif shutit.build['delivery'] in ('docker',):
  			os.chdir(path)
  		else:
  			shutit.fail('chdir not supported for delivery method: ' + str(shutit.build['delivery'])) # pragma: no cover
  		shutit.handle_note_after(note=note)
  		return True
docs: How to change directory will depend on whether we are in delivery mode bash or docker.
  
  		@param path:          Path to send file to.
  		@param timeout:       Timeout on response
  		@param note:          See send()