wip
This commit is contained in:
parent
30da9664d1
commit
0d26b19ab2
|
@ -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
|
||||
|
|
|
@ -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.} =
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 8d6828f090325c5c015f66a438d31aa592a7045d
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 06f5b0a0767b14c7595ed168611782be69e61543
|
Loading…
Reference in New Issue