[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2018-11-03 Thread Eryk Sun
Eryk Sun added the comment: Serhiy, do you also plan to work around immutable files in POSIX? What about permissions on directories that prevent deleting files? In BSD and macOS, we have os.chflags for modifying file flags. Modifying the immutable flag requires superuser access. In Linux,

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2018-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am working on this. Left to test on Windows and analyze possible security issues. -- ___ Python tracker ___

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2018-11-02 Thread Mayank Asthana
Mayank Asthana added the comment: I think it is OK to delete read-only files since they are in a TemporaryDirectory and should be expected to be temporary. A note in the documentation about this behaviour should be sufficient. -- nosy: +masthana

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2018-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2016-10-24 Thread Kyle Altendorf
Changes by Kyle Altendorf : -- nosy: +altendky ___ Python tracker ___ ___ Python-bugs-list

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2016-03-29 Thread SilentGhost
Changes by SilentGhost : -- nosy: +georg.brandl versions: +Python 3.6 ___ Python tracker ___

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2016-03-28 Thread Laurent Mazuel
New submission from Laurent Mazuel: Using tempfile.TemporaryDirectory() in Windows, creating read-only files in this temp directory leads to PermissionError during the cleanup(). This is a direct cause of this one: https://bugs.python.org/issue19643 And the workaround which was proposed in the