mirror of https://github.com/Xhofe/alist
fix(sftp): error while has no files(close #1078)
parent
d5626d6e2f
commit
d780fa18a5
|
@ -116,7 +116,7 @@ func (driver SFTP) Files(path string, account *model.Account) ([]model.File, err
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
var files []model.File
|
files := make([]model.File, 0)
|
||||||
rawFiles, err := client.Files(remotePath)
|
rawFiles, err := client.Files(remotePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in New Issue