jsharkey13 / iphone_backup_decrypt

Decrypt an encrypted iOS backup created by iTunes on Windows or MacOS
Other
247 stars 41 forks source link

Added support for retaining native subfolders #7

Closed noelgarber closed 7 months ago

noelgarber commented 1 year ago

Hello! I modified your code slightly in iphone_backup.py so that it retains native device subfolders when saving files found. For example, suppose you did:

backup.extract_file(relative_path="%", output_path="C:\\your\path\here")

It would add all the files to the output path, but lose all the subdirectory structure from the source. This new version allows it to retain the subdirectory structure. It also avoids forbidden paths by replacing forbidden characters.

I found this new feature very helpful; hoping you do too. :)

noelgarber commented 1 year ago

I also just added support for Linux, which uses a different path convention (forward slashes instead of backslashes), and updated the readme with usage for extracting all files.