brendan-duncan / archive

Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.
MIT License
403 stars 140 forks source link

fix slash errors on windoza with extractFileToDisk() #244

Closed TheLastGimbus closed 1 year ago

TheLastGimbus commented 1 year ago

hello me again :wave:

i had an issue where unzipped paths where partially "\" and partially "/", which (i think) breaks stuff on windoza

i added p.normalize() and p.join() to fix this - they handle platform stuff

i'm worried how many errors like these are here... but this should be good start for now :+1:

TheLastGimbus commented 1 year ago

It looks like it's not end fo the problem :( please see: https://github.com/TheLastGimbus/GooglePhotosTakeoutHelper/issues/178

brendan-duncan commented 1 year ago

I'll try to get to looking at this more, but things have been a bit crazy lately and I can't promise I'll be able to get to it too soon.