<p dir="ltr">I think I can try to dig a monkey patch for shutil.rmtree that uses Unicode version of Win32 API which, when supplied with specially crafted path, can delete long names.</p>
<p dir="ltr">Is it interesting for the community?</p>
<p dir="ltr">Thanks, <br>
Vasily</p>
<div class="gmail_quote">28 июня 2016 г. 23:40 пользователь "Greg Bullock" <<a href="mailto:greg@nwra.com">greg@nwra.com</a>> написал:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>I confirm that the file path length > 260 (for one of the
intermediate files) caused the RemoveDirectory step to fail. <br>
</p>
<p>Modifying the master.cfg to move CMake's build directory to a
higher level solved the problem.</p>
<p>Thank you all for the comments and suggestions.</p>
<br>
<div>On 6/27/2016 2:02 PM, Greg Bullock
wrote:<br>
</div>
<blockquote type="cite">
<p>Thank you for that comment, Vasily.</p>
<p>It turns out that indeed there is a (deeply nested) file with a
full path of 265 characters.</p>
<p>I'll modify the build to reduce the nesting depth and report
back whether this resolves the problem.</p>
<p>Regards.<br>
Greg<br>
</p>
<br>
<div>On 6/26/2016 3:48 AM, Vasily wrote:<br>
</div>
<blockquote type="cite">Hi all,
<div><span style="font-size:15px"><br>
</span></div>
<div><span style="font-size:15px">One of potential problems with
RemoveDirectory on Windows is that it uses ANSI version of
Win32 API which cannot deal with too long names (more than
MAXPATH, which, I believe, is about 260 characters), so you
might want to check if the directory you're trying to remove
has short enough name.</span></div>
<div><span style="font-size:15px"><br>
</span></div>
<div><span style="font-size:15px">Thanks,</span></div>
<div><span style="font-size:15px">Vasily<br>
</span><br>
</div>
</blockquote>
</blockquote>
<br>
<pre cols="72">--
Greg Bullock
NorthWest Research Associates
301 Webster St.
Monterey, CA 93940
(831) 582-4907
<a href="mailto:greg@nwra.com" target="_blank">greg@nwra.com</a></pre>
</div>
<br>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br></blockquote></div>