mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 11:55:01 +01:00
35 lines
521 B
Go
35 lines
521 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"
|
|
|
|
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
|
|
}
|