Class: OmniAI::Tools::Disk::DirectoryMoveTool
- Defined in:
- lib/omniai/tools/disk/directory_move_tool.rb
Overview
Instance Method Summary collapse
Methods inherited from BaseTool
Constructor Details
This class inherits a constructor from OmniAI::Tools::Disk::BaseTool
Instance Method Details
#execute(path:, destination:) ⇒ String
21 22 23 24 25 26 27 |
# File 'lib/omniai/tools/disk/directory_move_tool.rb', line 21 def execute(path:, destination:) @logger.info("#{self.class.name}#execute path=#{path.inspect} destination=#{destination.inspect}") @driver.directory_move(path:, destination:) rescue SecurityError => e @logger.error(e.) raise e end |