jfarley248 / iTunes_Backup_Reader

Python 3 Script to parse out iTunes backups
MIT License
170 stars 42 forks source link

Bug with \ and / when executed on a Linux #18

Open sorchaa opened 2 years ago

sorchaa commented 2 years ago

hello, I would like to inform you I think I meet a pb in the script. When it's eecuted on windows it's ok, but when it's executed in Linux there is a problem on the directory hierarchy, for example:

11-19 11:16 root         DEBUG    Trying to copy /mnt/apple/182066-MobileSync/Backup/9ef456a782d0c5619929d4c362b3cb7687e96cf4/5e/5ed69043ba53237d23941617e75e73af0e9fad4f to /mnt/apple/extract2/Recreated_File_Structure/Library\SMS\Attachments\42\02\4B306879-ACD1-49BF-B61C-47F27A53C6D9\4B306879-ACD1-49BF-B61C-47F27A53C6D9.pvt\IMG_3773.MOV
11-19 11:16 root         DEBUG    Successfully copied /mnt/2to/apple/182066-MobileSync/Backup/9ef456a782d0c5619929d4c362b3cb7687e96cf4/5e/5ed69043ba53237d23941617e75e73af0e9fad4f to /mnt/apple/extract2/Recreated_File_Structure/Library\SMS\Attachments\42\02\4B306879-ACD1-49BF-B61C-47F27A53C6D9\4B306879-ACD1-49BF-B61C-47F27A53C6D9.pvt\IMG_3773.MOV
11-19 11:16 root         DEBUG    Successfully recreated file: \Library/SMS/Attachments/42/02/4B306879-ACD1-49BF-B61C-47F27A53C6D9/4B306879-ACD1-49BF-B61C-47F27A53C6D9.pvt/IMG_3773.MOV from source file: 5ed69043ba53237d23941617e75e73af0e9fad4f