New submission from Dan Koch <koc...@ornl.gov>: The following sequence raises an exception, but nonetheless removes all files from the Desktop under Windows Vista.
import os, shutil, user desktop_dir = os.path.join(user.home, 'Desktop') os.chdir(desktop_dir) shutil.rmtree('') This does not occur under Fedora 12. Not tested on Mac OS X yet. ---------- components: Windows messages: 105646 nosy: dbkoch priority: normal severity: normal status: open title: shutil.rmtree with empty filepath type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8705> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com