mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
allow to mount virtual folders on root (/) path
Fixes #783 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -186,7 +186,7 @@ func (s *webDavServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
if !isCached {
|
||||
err = user.CheckFsRoot(connectionID)
|
||||
} else {
|
||||
_, err = user.GetFilesystem(connectionID)
|
||||
_, err = user.GetFilesystemForPath("/", connectionID)
|
||||
}
|
||||
if err != nil {
|
||||
errClose := user.CloseFs()
|
||||
|
||||
Reference in New Issue
Block a user