Skip to content

Commit 175ab43

Browse files
committed
add ifues description
1 parent 6ed85d7 commit 175ab43

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/appium_lib_core/common/base/driver.rb

+11
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,17 @@ def push_file(path, filedata)
426426
# of the corresponding application container.
427427
# Otherwise the root folder is considered as / on Android and on iOS it is a media folder root
428428
# (real devices only).
429+
# Only pulling files from application containers is supported for iOS Simulator.
430+
# Provide the remote path in format <code>@bundle.identifier:container_type/relative_path_in_container</code>
431+
# (Make sure this in ifuse doc)
432+
#
429433
# @return [Base64-decoded] Base64 decoded data
430434
#
431435
# @example
432436
#
433437
# @driver.pull_file '/local/data/some/path' #=> Get the file at that path
434438
# @driver.pull_file 'Shenanigans.app/some/file' #=> Get 'some/file' from the install location of Shenanigans.app
439+
# @driver.pull_file '@com.appium.example/Documents/file.txt' #=> Get 'file.txt' in @com.appium.example/Documents
435440
#
436441
def pull_file(path)
437442
@bridge.pull_file(path)
@@ -444,20 +449,26 @@ def pull_file(path)
444449
# its container on the internal file system.
445450
#
446451
# {https://github.com/libimobiledevice/ifuse iFuse GitHub page6}
452+
#
447453
# {https://github.com/osxfuse/osxfuse/wiki/FAQ osxFuse FAQ}
454+
#
448455
# {https://developer.android.com/studio/debug/ 'Debug Your App' developer article}
449456
#
450457
# @param [String] path Absolute path to the folder.
451458
# If the path starts with <em>@applicationId/</em> prefix, then the folder will be pulled
452459
# from the root of the corresponding application container.
453460
# Otherwise the root folder is considered as / on Android and on iOS it is a media folder root
454461
# (real devices only).
462+
# Only pulling files from application containers is supported for iOS Simulator.
463+
# Provide the remote path in format <code>@bundle.identifier:container_type/relative_path_in_container</code>
464+
# (Make sure this in ifuse doc)
455465
#
456466
# @return [Base64-decoded] Base64 decoded data which is zip archived
457467
#
458468
# @example
459469
#
460470
# @driver.pull_folder '/data/local/tmp' #=> Get the folder at that path
471+
# @driver.pull_file '@com.appium.example/Documents' #=> Get 'Documents' in @com.appium.example
461472
#
462473
def pull_folder(path)
463474
@bridge.pull_folder(path)

0 commit comments

Comments
 (0)