aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_transfer.go
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-02-04 10:59:32 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-09-29 21:29:09 +0200
commitdb123db4e16eea60584dddf8f3954c497ac50c89 (patch)
tree9760d9226fe928bdbf668988246291c8ae8ac4f5 /hotline/file_transfer.go
parentd2edcceaa61f52c9a28eecab8e563bfef74bbaad (diff)
Allow to delete home files / replace files
Diffstat (limited to 'hotline/file_transfer.go')
-rw-r--r--hotline/file_transfer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/file_transfer.go b/hotline/file_transfer.go
index d0ce597..37825c9 100644
--- a/hotline/file_transfer.go
+++ b/hotline/file_transfer.go
@@ -310,7 +310,7 @@ func UploadHandler(rwc io.ReadWriter, fullPath string, fileTransfer *FileTransfe
// handler should have returned an error to the client indicating there was an existing file present.
_, err := fileStore.Stat(fullPath)
if err == nil {
- return fmt.Errorf("existing file found: %s", fullPath)
+ // return fmt.Errorf("existing file found: %s", fullPath)
}
if !errors.Is(err, fs.ErrNotExist) {