1
0
mirror of https://github.com/schollz/croc.git synced 2024-12-18 11:11:29 +03:00

unzip in current location

This commit is contained in:
Zack Scholl 2018-09-21 22:00:36 -07:00
parent 11ab8a8078
commit c4cfa9b07f

View File

@ -164,7 +164,7 @@ func receive(c *websocket.Conn, codephrase string) (err error) {
c.WriteMessage(websocket.BinaryMessage, []byte("ok")) c.WriteMessage(websocket.BinaryMessage, []byte("ok"))
// open directory // open directory
if fstats.IsDir { if fstats.IsDir {
err = zipper.UnzipFile(fstats.SentName, fstats.Name) err = zipper.UnzipFile(fstats.SentName, ".")
} else { } else {
err = nil err = nil
} }