copytree with timeout in windows
astan.chee at al.com.au
Tue Jul 7 08:56:55 CEST 2009
Tim Golden wrote:
> Astan Chee wrote:
>> I'm trying to modify the copytree function in shutil so that any file
>> being copied does not take more than 5 minutes (if it does, skip to the
>> next one).
> One suggestion is to use the CopyFileEx API
> exposed in the win32file module from pywin32. That
> allows for a callback function which can abort
> the copy (or issue a progress meter, etc.).
Thanks, but looking in the documentation there is no callback function.
Did you mean */the Progress Routine?
> Obviously, you'd have to roll your own copytree, but
> that's not beyond the wit of man.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list