mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-15 22:56:27 +08:00
perf(ftp): non use SIZE FTP command (close #5150)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user