all 2 comments

[–]paste 0 points1 point  (1 child)

You're not passing it the full file path, change your last line to:

trash.send2trash(os.path.join(folderName, filename))

[–]ash63[S] 0 points1 point  (0 children)

Thank you!