mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
add DirLister interface
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -88,7 +88,7 @@ func (c *Connection) Stat(name string, mode int) (os.FileInfo, error) {
|
||||
}
|
||||
|
||||
// ReadDir returns a list of directory entries
|
||||
func (c *Connection) ReadDir(name string) ([]os.FileInfo, error) {
|
||||
func (c *Connection) ReadDir(name string) (vfs.DirLister, error) {
|
||||
c.UpdateLastActivity()
|
||||
|
||||
return c.ListDir(name)
|
||||
|
||||
Reference in New Issue
Block a user