Skip to content

Media export: Reimplement recursive directory listing while doing PRFS backup#32

Merged
prosch88 merged 2 commits into
prosch88:mainfrom
sandrzejewskipl:main
Jul 27, 2026
Merged

Media export: Reimplement recursive directory listing while doing PRFS backup#32
prosch88 merged 2 commits into
prosch88:mainfrom
sandrzejewskipl:main

Conversation

@sandrzejewskipl

Copy link
Copy Markdown
Contributor

This change reimplements pymobiledevice3's dirlist() by skipping directories that we don't have access to. Currently, when dirlist() encounters a directory that throws an exception, the entire backup process fails, causing all progress to be lost. With this change, the problematic directory will be skipped and logged:
26/07/2026 15:24:35: Error listing directory /PhotoData/UBF: [Errno 10] Opcode: READ_DIR failed with status: 10: None

fixes #31

@sandrzejewskipl

Copy link
Copy Markdown
Contributor Author

after i test it with a full backup i will mark it for review

@sandrzejewskipl

Copy link
Copy Markdown
Contributor Author

works as intended, tested on an iPhone running ios 27 beta, it skipped directory that was causing issues
Error listing directory /PhotoData/UBF: [Errno 10] Opcode: READ_DIR failed with status: 10: None

and it still only extracts files not found in a backup
Found 571 new file(s) to extract (54,369 already in backup)

@sandrzejewskipl
sandrzejewskipl marked this pull request as ready for review July 26, 2026 18:26
@prosch88

Copy link
Copy Markdown
Owner

Thanks for the input. It looks good overall. I won't be able to test it until tomorrow. If it doesn't break anything else, I'll merge it as is.

@prosch88
prosch88 merged commit fecc1aa into prosch88:main Jul 27, 2026
@prosch88

Copy link
Copy Markdown
Owner

Tested without problems. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PRFS backup: AFC Extraction throwing READ_DIR failed with status: 10

2 participants