mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
vfs: store root dir
so we don't need to pass it over and over
This commit is contained in:
@@ -114,7 +114,7 @@ func (u *User) GetFilesystem(connectionID string) (vfs.Fs, error) {
|
||||
if u.FsConfig.Provider == 1 {
|
||||
return vfs.NewS3Fs(connectionID, u.GetHomeDir(), u.FsConfig.S3Config)
|
||||
}
|
||||
return vfs.NewOsFs(connectionID), nil
|
||||
return vfs.NewOsFs(connectionID, u.GetHomeDir()), nil
|
||||
}
|
||||
|
||||
// GetPermissionsForPath returns the permissions for the given path.
|
||||
|
||||
Reference in New Issue
Block a user