remove file if overwriting
This commit is contained in:
parent
71ba80cee0
commit
3984aaeee2
|
|
@ -199,6 +199,10 @@ func receive(forceSend int, serverAddress string, tcpPorts []string, isLocal boo
|
|||
}
|
||||
|
||||
// await file
|
||||
// erase file if overwriting
|
||||
if overwritingOrReceiving == "Overwriting" {
|
||||
os.Remove(fstats.SentName)
|
||||
}
|
||||
var f *os.File
|
||||
if utils.Exists(fstats.SentName) && resumeFile {
|
||||
if !useWebsockets {
|
||||
|
|
|
|||
Loading…
Reference in New Issue