mirror of https://github.com/schollz/croc.git
remove the zip file if not debug
This commit is contained in:
parent
c4cfa9b07f
commit
9af7c05dc6
|
@ -165,6 +165,9 @@ func receive(c *websocket.Conn, codephrase string) (err error) {
|
||||||
// open directory
|
// open directory
|
||||||
if fstats.IsDir {
|
if fstats.IsDir {
|
||||||
err = zipper.UnzipFile(fstats.SentName, ".")
|
err = zipper.UnzipFile(fstats.SentName, ".")
|
||||||
|
if DebugLevel != "debug" {
|
||||||
|
os.Remove(fstats.SentName)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue