[issue8705] shutil.rmtree with empty filepath

2010-11-20 Thread R. David Murray
R. David Murray added the comment: Just as an FYI, a similar situation exists on Solaris. I had to fix one of the Python test suite tests once because it was naively trying to rmtree the CWD. -- nosy: +r.david.murray ___ Python tracker

[issue8705] shutil.rmtree with empty filepath

2010-11-19 Thread Brian Curtin
Brian Curtin added the comment: This can't actually work. You can't delete a directory which has open handles to it on Windows, namely the Python process you're running in that directory. The empty file path isn't really the issue here. shutil.rmtree(os.getcwd()) attempts the same thing but g

[issue8705] shutil.rmtree with empty filepath

2010-05-14 Thread Dan Koch
Dan Koch added the comment: Here's the session printout. Desktop files under Vista still get deleted despite the exception. Does not occur on Fedora 12 or Mac OS X. I can code around it by testing for a blank filepath, but it was a surprise. C:\Users\ko5>python Python 2.6.4 (r264:75708, Oct 2

[issue8705] shutil.rmtree with empty filepath

2010-05-14 Thread Tarek Ziadé
Tarek Ziadé added the comment: Dan, Can I have the error you get ? Thanks -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8705] shutil.rmtree with empty filepath

2010-05-14 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8705] shutil.rmtree with empty filepath

2010-05-13 Thread Ray.Allen
Ray.Allen added the comment: Tested on Debian 5, also not occurs. -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8705] shutil.rmtree with empty filepath

2010-05-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8705] shutil.rmtree with empty filepath

2010-05-13 Thread Dan Koch
New submission from Dan Koch : 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