Sha256: a984b3b379a9489c17c25be090794a756e0456ce1b3b6245b398e9f0ab7f47c5

Contents?: true

Size: 682 Bytes

Versions: 8

Compression:

Stored size: 682 Bytes

Contents

require 'base64'

module Appium
  module Core
    class Base
      module Device
        module FileManagement
          def push_file(path, filedata)
            encoded_data = Base64.strict_encode64 filedata
            execute :push_file, {}, path: path, data: encoded_data
          end

          def pull_file(path)
            data = execute :pull_file, {}, path: path
            Base64.decode64 data
          end

          def pull_folder(path)
            data = execute :pull_folder, {}, path: path
            Base64.decode64 data
          end
        end # module FileManagement
      end # module Device
    end # class Base
  end # module Core
end # module Appium

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
appium_lib_core-3.0.2 lib/appium_lib_core/common/device/file_management.rb
appium_lib_core-3.0.1 lib/appium_lib_core/common/device/file_management.rb
appium_lib_core-3.0.0 lib/appium_lib_core/common/device/file_management.rb
appium_lib_core-2.3.4 lib/appium_lib_core/common/device/file_management.rb
appium_lib_core-2.3.3 lib/appium_lib_core/common/device/file_management.rb
appium_lib_core-2.3.2 lib/appium_lib_core/common/device/file_management.rb
appium_lib_core-2.3.1 lib/appium_lib_core/common/device/file_management.rb
appium_lib_core-2.3.0 lib/appium_lib_core/common/device/file_management.rb