Skip to content

[Feature request] Improved handling for error messages #2076

@valoq

Description

@valoq

There are several cases of confusing (error) messages when copying or moving files in lf:

Create a folder "test" with folders a, b and c inside.
The folder test has owner and permissions for the user running lf
The subfolders do not have the correct permissions, except for folder c

  1. navigate to folder "test" and move it somewhere else
  2. lf will display error messages about the missing permissions for a split second, but the last message will show "Moved successfully" in green
  3. in cases of large folder collections with some permissions missing, I only saw the green "Moved successfully" message, but no file was actually moved

When the same is done using copy instead of move, the files that have the right permissions are actually copied and the error message is shown in red, indicating the last failed copy operation.

There are two issues here though probably connected:

  1. Move shows successful message even though no file was moved
  2. Multiple error messages overwrite each other and cause confusion about what failed and what succeeded

Not sure how to best address this, but I would suggest that:

A) if there is an error, no success message may overwrite it
B) if there are multiple error messages, it should not show the last but a separate message about multiple errors

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions