improve temp dirs handling an some logs

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2023-10-17 18:06:52 +02:00
parent 254824b781
commit 6282f95bd3
11 changed files with 52 additions and 65 deletions

View File

@@ -445,7 +445,8 @@ func (c *Connection) handleSFTPUploadToExistingFile(fs vfs.Fs, pflags sftp.FileO
// For Cloud FS GetMaxWriteSize will return unsupported operation
maxWriteSize, err := c.GetMaxWriteSize(diskQuota, isResume, fileSize, fs.IsUploadResumeSupported())
if err != nil {
c.Log(logger.LevelDebug, "unable to get max write size: %v", err)
c.Log(logger.LevelDebug, "unable to get max write size for file %q is resume? %t: %v",
requestPath, isResume, err)
return nil, err
}