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