mirror of
https://github.com/rclone/rclone.git
synced 2025-04-16 16:18:52 +08:00
lsjson: handle error
This commit is contained in:
parent
393f64a70c
commit
a8fe16f381
@ -208,6 +208,9 @@ func (lj *listJSON) entry(ctx context.Context, entry fs.DirEntry) (*ListJSONItem
|
||||
var parsedName string
|
||||
if metadata != nil && metadata["content-disposition"] != "" {
|
||||
parsedName, err = parseFilenameFromContentDisposition(metadata["content-disposition"])
|
||||
if err != nil {
|
||||
fs.Errorf(entry, "Failed to parse filename from content-disposition: %v", err)
|
||||
}
|
||||
}
|
||||
if parsedName != "" {
|
||||
name = parsedName
|
||||
|
Loading…
x
Reference in New Issue
Block a user