remove some useless hooks

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-09-25 17:20:46 +02:00
parent eeef23139d
commit 126cb1ee0d
9 changed files with 9 additions and 139 deletions

View File

@@ -157,9 +157,6 @@ func (u *User) GetFilesystem(connectionID string) (fs vfs.Fs, err error) {
}
func (u *User) getRootFs(connectionID string) (fs vfs.Fs, err error) {
if vfs.IsFsDisabled(u.FsConfig.Provider) {
return nil, fmt.Errorf("filesystem provider %d is disabled", u.FsConfig.Provider)
}
switch u.FsConfig.Provider {
case sdk.S3FilesystemProvider:
return vfs.NewS3Fs(connectionID, u.GetHomeDir(), "", u.FsConfig.S3Config)