> The only thing that's missing is that this script can't handle paths > like ~/dir/junkthis I believe you're looking for os.path.expanduser("~/dir/junkthis") BTW, trashcan IS a module level variable because it's defined at the module level. Why it says it's local is beyond me. HTH, Jacob Schmidt