Improvement/fix for RecursiveCreateDir() (Windows version)

11 views
Skip to first unread message

Michael L

unread,
May 31, 2012, 9:14:10 PM5/31/12
to Earthworm Community Forum
Hi,

The below changes alter the Windows version of RecursiveCreateDir() to
interpret both '/' and '\' as directory separators.

In ./libsrc/winnt/dirops_ew.c:
Change line 134 to:
char find[] = "\\/";

Change line 161 to:
while ((where = strpbrk(dname, find)) != NULL) {

and we're done!

Cheers,

Michael

Paul Friberg

unread,
May 31, 2012, 9:22:15 PM5/31/12
to earthwo...@googlegroups.com, Michael L
Hi Michael,

I'll make the change in SVN, but you should consider joining the ewdev group. We discuss
and implement changes in that mailing list to avoid too much programmatic stuff
on the users group. Let Stefan and/or I know and we can add you into ewdev.

Did this solve the issue you were seeing? Not sure why the compiled version
that we built would behave differently though....please explain further if
you have time. Thanks.

Cheers,

Paul
Reply all
Reply to author
Forward
0 new messages