goftp-server/file_info.go
Lunny Xiao f38da66599 Fix lints and add RemoteAddr in Conn (#105)
Fix lints and add RemoteAddr in Conn

Reviewed-on: goftp/server#105
2020-03-18 06:36:54 +00:00

36 lines
562 B
Go

// Copyright 2018 The goftp Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package server
import "os"
// FileInfo represents an file interface
type FileInfo interface {
os.FileInfo
Owner() string
Group() string
}
type fileInfo struct {
os.FileInfo
mode os.FileMode
owner string
group string
}
func (f *fileInfo) Mode() os.FileMode {
return f.mode
}
func (f *fileInfo) Owner() string {
return f.owner
}
func (f *fileInfo) Group() string {
return f.group
}