Skip to content

Commit

Permalink
correction to pullFolder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Jun 16, 2014
1 parent dd857e5 commit 71212db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/appium/java_client/AppiumDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public AppiumDriver(URL remoteAddress, Capabilities desiredCapabilities){
.put(CURRENT_ACTIVITY, getC("/session/:sessionId/appium/device/current_activity"))
.put(SET_VALUE, postC("/session/:sessionId/appium/element/:id/value"))
.put(PULL_FILE, postC("/session/:sessionId/appium/device/pull_file"))
.put(PULL_FILE, postC("/session/:sessionId/appium/device/pull_folder"))
.put(HIDE_KEYBOARD, postC("/session/:sessionId/appium/device/hide_keyboard"))
.put(PUSH_FILE, postC("/session/:sessionId/appium/device/push_file"))
.put(RUN_APP_IN_BACKGROUND, postC("/session/:sessionId/appium/app/background"))
Expand Down Expand Up @@ -184,7 +185,7 @@ public void pushFile(String remotePath, byte[] base64Data) {
* @return A byte array of Base64 encoded data, representing a ZIP ARCHIVE of the contents of the requested folder.
*/
public byte[] pullFolder(String remotePath) {
Response response = execute(PULL_FILE, ImmutableMap.of("path", remotePath));
Response response = execute(PULL_FOLDER, ImmutableMap.of("path", remotePath));
String base64String = response.getValue().toString();

return DatatypeConverter.parseBase64Binary(base64String);
Expand Down

0 comments on commit 71212db

Please sign in to comment.