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:
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. :)
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.
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. :)