0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

remove file if overwriting

This commit is contained in:
Zack Scholl 2018-10-09 16:50:18 -07:00
parent 71ba80cee0
commit 3984aaeee2

View file

@ -199,6 +199,10 @@ func receive(forceSend int, serverAddress string, tcpPorts []string, isLocal boo
} }
// await file // await file
// erase file if overwriting
if overwritingOrReceiving == "Overwriting" {
os.Remove(fstats.SentName)
}
var f *os.File var f *os.File
if utils.Exists(fstats.SentName) && resumeFile { if utils.Exists(fstats.SentName) && resumeFile {
if !useWebsockets { if !useWebsockets {