mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
add a File interface so we can avoid to use os.File directly
This commit is contained in:
@@ -50,7 +50,7 @@ func (fs *MockOsFs) Name() string {
|
||||
}
|
||||
|
||||
// Open returns nil
|
||||
func (fs *MockOsFs) Open(name string, offset int64) (*os.File, *pipeat.PipeReaderAt, func(), error) {
|
||||
func (fs *MockOsFs) Open(name string, offset int64) (vfs.File, *pipeat.PipeReaderAt, func(), error) {
|
||||
return nil, fs.reader, nil, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user