[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-12-11 Thread Ivan Radic
Ivan Radic added the comment: I got this with 3.5.1 installer on Windows 7. I solved it by running installer with elevated privileges. Installer for 2.7.11 was not affected. -- nosy: +ivan.radic ___ Python tracker <http://bugs.python.org/issue25

[issue19643] shutil rmtree fails on readonly files in Windows

2013-11-18 Thread Ivan Radic
Ivan Radic added the comment: >You are essentially asking that we have an option to make the windows behavior >mirror the posix behavior? (A read only file in a writable directory can be >deleted in posix, since only the directory entry, not the file, is being >deleted.) Ac

[issue19643] shutil rmtree fails on readonly files in Windows

2013-11-18 Thread Ivan Radic
New submission from Ivan Radic: shutil.rmtree works nice on Windows until it hits file with read only attribute set. Workaround is to provide a onerror parameter as a function that checks and removes file attribute before attempting to delete it. Can option to delete read_only files be

[issue19642] shutil to support equivalent of: rm -f /dir/*

2013-11-18 Thread Ivan Radic
New submission from Ivan Radic: Shutil supports deleting of files and directories but it offers no way to delete directory content (without deleting directory itself). Shell programming includes a lot of "rm -rf /dir" and "rm -f /dir/*", and there is no direct equivalent