perf(ftp): non use SIZE FTP command (close #5150)

This commit is contained in:
Andy Hsu
2023-09-03 18:47:32 +08:00
parent 8e40465e86
commit f6ab1f7f61
2 changed files with 19 additions and 24 deletions

View File

@ -64,7 +64,7 @@ func (d *FTP) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*m
return nil, err
}
r := NewFTPFileReader(d.conn, file.GetPath())
r := NewFileReader(d.conn, file.GetPath(), file.GetSize())
link := &model.Link{
MFile: r,
}