forked from goftp/server
c28a288338
Factor into core and driver directories The change factors the pure server implementation into the "core" directory and factors the file driver into "driver/file" and the minio driver into "driver/minio". This means that users of this library can import goftp.io/server/core without having to import the file and minio drivers which may not be needed. This also adds a compatibility layer which exports all the types, functions and variables that were exported at the top level. This means this change should be 100% backwards compatible. Fixes #116 Co-authored-by: Nick Craig-Wood <nick@craig-wood.com> Reviewed-on: goftp/server#120
28 lines
444 B
Go
28 lines
444 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 file
|
|
|
|
import "os"
|
|
|
|
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
|
|
}
|