[issue22024] Add to shutil the ability to wait until files are definitely deleted

2019-07-29 Thread STINNER Victor
STINNER Victor added the comment: This issue is 5 years old and has 2 patches: it's far from being "newcomer friendly", I remove the "Easy" label. -- nosy: +vstinner ___ Python tracker _

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-21 Thread Sean McCully
Sean McCully added the comment: Is this closer to what Zachary.Ware suggested, patch implements a wait_until_deleted method in C Api using inotify for Linux/FreeBSD. -- nosy: +seanmccully Added file: http://bugs.python.org/file36433/issue22024.patch

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Windows has FindFirstChangeNotification and FileSystemWatcher: * http://msdn.microsoft.com/en-us/library/aa364417%28VS.85%29.aspx * http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx -- nosy: +rhettinger ___

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On Linux and some other systems there is an API which allow you to subscribe on notifications about file system events (in particular on deleting specified file). There are modules which provides Python interface to it (e.g. python- inotify, inotifyx, pyinoti

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-02 Thread Vivek Balakrishnan
Vivek Balakrishnan added the comment: With respect to msg224566, is a default timeout a good solution? -- ___ Python tracker ___ ___ P

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What if other program will create a file with same name in short time after deletion? Then rmtree() will hang in infinity loop. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-08-02 Thread Vivek Balakrishnan
Vivek Balakrishnan added the comment: Patch that adds wait parameter to shutil.rmtree. -- keywords: +patch nosy: +Vivek.Balakrishnan Added file: http://bugs.python.org/file36213/shutil_wait.patch ___ Python tracker

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-07-21 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22024] Add to shutil the ability to wait until files are definitely deleted

2014-07-21 Thread Zachary Ware
New submission from Zachary Ware: As suggested by Martin in msg170717, shutil should grow some way to block until a given file/directory is actually deleted, due to Windows' scheme of not actually deleting a file until all handles to it are closed. This could take the form of a 'wait=False' pa