mirror of
https://github.com/rclone/rclone.git
synced 2025-04-19 18:31:10 +08:00
lsjson: handle error
This commit is contained in:
parent
58829f3c15
commit
f3b68b4ca7
@ -207,6 +207,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