[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-08-02 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti, loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, pyinotify). May be there is similar API on Windows?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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' parameter to rmtree that causes 
rmtree to block until the file/dir is gone (which could mean blocking 
indefinitely), or a new function wait_until_deleted(name, timeout=None).

Related issues: #15946, #7443, #19629

--
components: Library (Lib)
keywords: easy
messages: 223604
nosy: zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: Add to shutil the ability to wait until files are definitely deleted
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2014-07-21 Thread Jeremy Kloth

Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com:


--
nosy: +jkloth

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22024
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com