copytree with timeout in windows

Astan Chee astan.chee at al.com.au
Tue Jul 7 02:56:55 EDT 2009


Tim Golden wrote:
> Astan Chee wrote:
>   
>> Hi,
>> 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?
Thanks again
/*
> Obviously, you'd have to roll your own copytree, but
> that's not beyond the wit of man.
>
> TJG
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090707/adb98be6/attachment.html>


More information about the Python-list mailing list