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:
parent
11ab8a8078
commit
c4cfa9b07f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user