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:
parent
71ba80cee0
commit
3984aaeee2
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue