[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: Martijn Boekhorst <subversion_at_boekhorst.net>
Date: 2002-06-06 15:54:11 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+)

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

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

Cheers, Martijn.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 6 15:55:20 2002

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