mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
add Data At Rest Encryption support
This commit is contained in:
@@ -404,6 +404,9 @@ func (c *scpCommand) sendDownloadFileData(filePath string, stat os.FileInfo, tra
|
||||
return err
|
||||
}
|
||||
}
|
||||
if vfs.IsCryptOsFs(c.connection.Fs) {
|
||||
stat = c.connection.Fs.(*vfs.CryptFs).ConvertFileInfo(stat)
|
||||
}
|
||||
|
||||
fileSize := stat.Size()
|
||||
readed := int64(0)
|
||||
|
||||
Reference in New Issue
Block a user