This commit is contained in:
Ben 2024-09-19 09:30:40 +02:00
parent 30da9664d1
commit 0d26b19ab2
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
4 changed files with 9 additions and 10 deletions

6
.gitmodules vendored
View File

@ -215,6 +215,6 @@
[submodule "vendor/nim-leveldbstatic"]
path = vendor/nim-leveldbstatic
url = https://github.com/codex-storage/nim-leveldb.git
[submodule "vendor/zip"]
path = vendor/zip
url = https://github.com/nim-lang/zip.git
[submodule "vendor/nim-zippy"]
path = vendor/nim-zippy
url = https://github.com/status-im/nim-zippy.git

View File

@ -5,7 +5,7 @@ import pkg/chronos
import pkg/ethers
import pkg/questionable
import pkg/questionable/results
import pkg/zip/zipfiles
# import pkg/zippy/ziparchives
import pkg/chronos/apps/http/httpclient
import ../../codex/contracts/marketplace
@ -60,11 +60,10 @@ proc downloadZipfile(url: string, filepath: string): Future[?!void] {.async.} =
success()
proc unzip(zipfile:string, targetPath: string): ?!void =
var z: ZipArchive
if not z.open(zipfile):
return failure("Unable to open zip file: " & zipfile)
z.extractAll(targetPath)
z.close()
# try:
# extractAll(zipfile, targetPath)
# except Exception as exc:
# return failure(exc.msg)
success()
proc main() {.async.} =

1
vendor/nim-zippy vendored Submodule

@ -0,0 +1 @@
Subproject commit 8d6828f090325c5c015f66a438d31aa592a7045d

1
vendor/zip vendored

@ -1 +0,0 @@
Subproject commit 06f5b0a0767b14c7595ed168611782be69e61543