mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
🎇 close #522 hide account for guest webdav
This commit is contained in:
parent
435bdea8f7
commit
6827af3997
@ -50,18 +50,17 @@ func (fs *FileSystem) File(rawPath string) (*model.File, error) {
|
||||
|
||||
func (fs *FileSystem) Files(ctx context.Context, rawPath string) ([]model.File, error) {
|
||||
rawPath = utils.ParsePath(rawPath)
|
||||
var files []model.File
|
||||
var err error
|
||||
if model.AccountsCount() > 1 && rawPath == "/" {
|
||||
files, err := model.GetAccountFiles()
|
||||
files, err = model.GetAccountFiles()
|
||||
} else {
|
||||
account, path_, driver, err := common.ParsePath(rawPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return files, nil
|
||||
files, err = operate.Files(driver, account, path_)
|
||||
}
|
||||
account, path_, driver, err := common.ParsePath(rawPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
files, err := operate.Files(driver, account, path_)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user