shingo256 / trashed

Viewing/editing system trash can in Emacs
25 stars 2 forks source link

Errror when there is no directory for trashcan #3

Closed akirak closed 5 years ago

akirak commented 5 years ago

Running trashed throws an error if I have never used the trashcan:

trashed-read-files: Opening directory: No such file or directory, /home/akirakomamura/.local/share/Trash/files

Apparently this is caused by evaluating the following expression in the function:

(directory-files-and-attributes trashed-files-dir nil nil t)

It can be prevented by putting the expression inside (ignore-errors ...).

shingo256 commented 5 years ago

Thank you for the report. Fixed.