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
|
||||
if fstats.IsDir {
|
||||
err = zipper.UnzipFile(fstats.SentName, ".")
|
||||
if DebugLevel != "debug" {
|
||||
os.Remove(fstats.SentName)
|
||||
}
|
||||
} else {
|
||||
err = nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue