mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
sftp realpath: resolve symlinks
Fixes #890 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -89,6 +89,12 @@ type Fs interface {
|
||||
Close() error
|
||||
}
|
||||
|
||||
// FsRealPather is a Fs that implements the RealPath method.
|
||||
type FsRealPather interface {
|
||||
Fs
|
||||
RealPath(p string) (string, error)
|
||||
}
|
||||
|
||||
// fsMetadataChecker is a Fs that implements the getFileNamesInPrefix method.
|
||||
// This interface is used to abstract metadata consistency checks
|
||||
type fsMetadataChecker interface {
|
||||
|
||||
Reference in New Issue
Block a user