device_file_find
Search a directory subtree for files whose NAME matches. Counterpart of ios_file_find. Matches on the name only, not on contents. query is a case-insensitive substring, or a glob if it contains * ? or [. Returns { ok, remotePath, query, count, truncated, matches }. truncated true means the limit was hit and there are more — raise limit or narrow the subtree rather than assuming the list is complete. Permission-denied subtrees are skipped silently by the device shell, so a result of zero is not proof of absence outside /sdcard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Device serial number (UDID) | |
| limit | No | Maximum matches (default 200) | |
| query | Yes | Name substring, or a glob if it contains * ? or [ | |
| maxDepth | No | Maximum depth to descend | |
| remotePath | Yes | Absolute path of the subtree to search, e.g. /sdcard/Download |