1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-23 23:54:17 +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"))
// open directory
if fstats.IsDir {
err = zipper.UnzipFile(fstats.SentName, fstats.Name)
err = zipper.UnzipFile(fstats.SentName, ".")
} else {
err = nil
}