[users at bb.net] [Foreign Sender] Re: Detailed log of RemoveDirectory step's failure?
Vasily
just.one.man at yandex.ru
Tue Jun 28 21:10:21 UTC 2016
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" <greg at nwra.com> написал:
> 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) 582-4907greg at nwra.com
>
>
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20160629/55452022/attachment.html>
More information about the users
mailing list