remove the zip file if not debug

This commit is contained in:
Zack Scholl 2018-09-21 22:01:30 -07:00
parent c4cfa9b07f
commit 9af7c05dc6
1 changed files with 3 additions and 0 deletions

View File

@ -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
}