mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
connection: add a close method
and use it instead of netConn directly
This commit is contained in:
@@ -579,6 +579,10 @@ func (c Connection) createMissingDirs(filePath string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c Connection) close() error {
|
||||
return c.netConn.Close()
|
||||
}
|
||||
|
||||
func getOSOpenFlags(requestFlags sftp.FileOpenFlags) (flags int) {
|
||||
var osFlags int
|
||||
if requestFlags.Read && requestFlags.Write {
|
||||
|
||||
Reference in New Issue
Block a user