<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Tim Golden wrote:
<blockquote cite="mid:4A52CAF2.7010707@timgolden.me.uk" type="cite">
<pre wrap="">Astan Chee wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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).
</pre>
</blockquote>
<pre wrap=""><!---->
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.).
</pre>
</blockquote>
Thanks, but looking in the documentation there is no callback function.
Did you mean <b><i>the Progress Routine?<br>
Thanks again<br>
</i></b>
<blockquote cite="mid:4A52CAF2.7010707@timgolden.me.uk" type="cite">
<pre wrap="">
Obviously, you'd have to roll your own copytree, but
that's not beyond the wit of man.
TJG
</pre>
</blockquote>
</body>
</html>