hackappcom / iloot

OpenSource tool for iCloud backup extraction
https://hackapp.com/
642 stars 202 forks source link

Modify filenames in windows #60

Open ghost opened 9 years ago

ghost commented 9 years ago

I was using iloot on python 2.7 on windows and i encountered this error:

IOError: [Errno 22] invalid mode ('wb') or filename: u'C:\Users\Joe\Desktop\ios\406065c4f76dbf29adc4fbc32726f6f6f7a9008f\snapshot_1/AppDomain-si.modula.instantheartrate\Documents/logs/log_2015-07-29T15:03:27.498.txt'

This is due to the fact that the character ":" is reserved [note the date in the filename uses this character], and windows does not allow creating files or folders with this character.

Other reserved characters are "\", "/", ":", "*", "<", ">", "|".

I recommend removing or replacing these characters in future releases

danjng commented 9 years ago

Sounds like this can be knocked out with a little bit of gsub magic... I'd do it if I had the time. Maybe someone will take care of this? I will if/when I have a moment.