Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The execute() method of the trash command (in ranger/config/commands.py) used to pass a list of file paths (as strings) to fm.execute_file(). The documentation of the execute_file() method states that the 'files' parameter must not be strings: [...] files: a list of file objects (not strings!) [...] So I changed 'files' to be a list of File objects and that seems to fix the issue. Fixes #1798
- Loading branch information
f65e6f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix doesn't work. Still not be able to trash file by using command :trash. Still the same error , "str object has no attribute 'path' "
f65e6f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only the tip of the PR. You need all these commits, https://github.com/ranger/ranger/pull/1871/commits.