🐛 fix #658 onedrive file/folder judge

This commit is contained in:
Xhofe
2022-03-03 16:01:24 +08:00
parent 90b57dacee
commit 796d490fb7
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ func (driver Onedrive) Link(args base.Args, account *model.Account) (*base.Link,
if err != nil {
return nil, err
}
if file.File.MimeType == "" {
if file.File == nil {
return nil, base.ErrNotFile
}
link := base.Link{