Module: Appium::Core::Base::Device::FileManagement
- Defined in:
- lib/appium_lib_core/common/device/file_management.rb
Instance Method Summary collapse
Instance Method Details
#pull_file(path) ⇒ Object
27 28 29 30 |
# File 'lib/appium_lib_core/common/device/file_management.rb', line 27 def pull_file(path) data = execute :pull_file, {}, path: path Base64.decode64 data end |
#pull_folder(path) ⇒ Object
32 33 34 35 |
# File 'lib/appium_lib_core/common/device/file_management.rb', line 32 def pull_folder(path) data = execute :pull_folder, {}, path: path Base64.decode64 data end |
#push_file(path, filedata) ⇒ Object
22 23 24 25 |
# File 'lib/appium_lib_core/common/device/file_management.rb', line 22 def push_file(path, filedata) encoded_data = Base64.strict_encode64 filedata execute :push_file, {}, path: path, data: encoded_data end |