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.

Is it interesting for the community?

Thanks,
Vasily
28 июня 2016 г. 23:40 пользователь "Greg Bullock" <[email protected]> написал:

> I confirm that the file path length > 260 (for one of the intermediate
> files) caused the RemoveDirectory step to fail.
>
> Modifying the master.cfg to move CMake's build directory to a higher level
> solved the problem.
>
> Thank you all for the comments and suggestions.
>
> On 6/27/2016 2:02 PM, Greg Bullock wrote:
>
> Thank you for that comment, Vasily.
>
> It turns out that indeed there is a (deeply nested) file with a full path
> of 265 characters.
>
> I'll modify the build to reduce the nesting depth and report back whether
> this resolves the problem.
>
> Regards.
> Greg
>
> On 6/26/2016 3:48 AM, Vasily wrote:
>
> Hi all,
>
> 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.
>
> Thanks,
> Vasily
>
>
> --
> Greg Bullock
> NorthWest Research Associates
> 301 Webster St.
> Monterey, CA  93940
> (831) [email protected]
>
>
> _______________________________________________
> users mailing list
> [email protected]
> https://lists.buildbot.net/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
https://lists.buildbot.net/mailman/listinfo/users

Reply via email to