[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Re: A List of Issues

From: Ben King <bking_at_answerfriend.com>
Date: 2002-06-06 16:13:33 CEST

>
> > GetLongPathName() looks promising, but I don't have an easy way of
> > testing...
>
> That does what you want, but is Windows-2000 and up (NT5+)
>

D'oh!

>
> Try this instead :
> WIN32_FIND_DATA findData;
> HANDLE h;
> if (h = FindFirstFile(argv[1], &findData)) {
> printf("\"%s\"\n", findData.cFileName);
> FindClose(h);
> }
>

At first I had a horrible flashback for Borland TurboC programming
and DOSFindFirst() or whatever the function name was... then, when
the spasms stopped, I thought: "Wasn't that for wildcarding?"

Then, I realized: without cygwin, svn has no wildcard/globbing support
on Win32. If we were to use FindFirst/FindNext to do wildcard expansion,
we'd get the canonical names for free[1], wouldn't we?

This seems like The Right Thing To Do, for overall usability, *and*
to solve (some of) the case issues.

>
> It's two calls but doesn't scan the actual directory anymore than
> GetLongPathName would internally. (Only returnes the filename btw.)
>

Right.

> Cheers, Martijn.
>

Thanks,

--ben

[1] For sufficiently large values of "free".

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 6 16:09:41 2002

This is an archived mail posted to the Subversion Dev mailing list.