FortuneN / cordova-plugin-zeep

Zip compression/decompression for the cordova/phonegap platform
Apache License 2.0
28 stars 37 forks source link

unzip to same directory as zip ? #4

Open jhjulkun opened 7 years ago

jhjulkun commented 7 years ago

At least in the windows version it seems you can't extract into the same directory as where the zip file is ?

In my case it would make more sense than having a new directory for unzipped files.

Thanks

FortuneN commented 7 years ago

I'm looking into it. stand by

jhjulkun commented 7 years ago

I made a quick & dirty hack to unzip into the same directory. The hack will obviously not work if you DO want to have a subdirectory for unzipped contents.

In FiNeZeep.cs:43: private static async Task unzipImpl(object[] args) ... // hack StorageFolder toFolder = await toParentFolder.CreateFolderAsync(Path.GetFileName(to\ Path), CreationCollisionOption.OpenIfExists); StorageFolder toFolder = await StorageFolder.GetFolderFromPathAsync(toParentPath); ...