Skip to content

Commit 71212db

Browse files
committed
correction to pullFolder
1 parent dd857e5 commit 71212db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/io/appium/java_client/AppiumDriver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public AppiumDriver(URL remoteAddress, Capabilities desiredCapabilities){
5353
.put(CURRENT_ACTIVITY, getC("/session/:sessionId/appium/device/current_activity"))
5454
.put(SET_VALUE, postC("/session/:sessionId/appium/element/:id/value"))
5555
.put(PULL_FILE, postC("/session/:sessionId/appium/device/pull_file"))
56+
.put(PULL_FILE, postC("/session/:sessionId/appium/device/pull_folder"))
5657
.put(HIDE_KEYBOARD, postC("/session/:sessionId/appium/device/hide_keyboard"))
5758
.put(PUSH_FILE, postC("/session/:sessionId/appium/device/push_file"))
5859
.put(RUN_APP_IN_BACKGROUND, postC("/session/:sessionId/appium/app/background"))
@@ -184,7 +185,7 @@ public void pushFile(String remotePath, byte[] base64Data) {
184185
* @return A byte array of Base64 encoded data, representing a ZIP ARCHIVE of the contents of the requested folder.
185186
*/
186187
public byte[] pullFolder(String remotePath) {
187-
Response response = execute(PULL_FILE, ImmutableMap.of("path", remotePath));
188+
Response response = execute(PULL_FOLDER, ImmutableMap.of("path", remotePath));
188189
String base64String = response.getValue().toString();
189190

190191
return DatatypeConverter.parseBase64Binary(base64String);

0 commit comments

Comments
 (0)