andreafrancia/trash-cli — pull request #31 by jpkotta (2014-03-12 03:11:12+00:00)
Title: improve exception handling when removing files

If the fs is readonly, or I otherwise don't have permission to delete something from a .Trash directory, trash-empty blows up with an uncaught exception. This is a problem because trash-empty looks for .Trash directories on each mountpoint, some of which I don't have write access to.

Also, `os` is imported at the top level, no need to do local imports.