mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
@@ -181,7 +181,7 @@ func (fh *WriteFileHandle) close() (err error) {
|
||||
}
|
||||
fh.closed = true
|
||||
// leave writer open until file is transferred
|
||||
defer fh.file.delWriter(fh)
|
||||
defer fh.file.delWriter(fh, false)
|
||||
// If file not opened and not safe to truncate then then leave file intact
|
||||
if !fh.opened && !fh.safeToTruncate() {
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user