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

RE: Files with trailing dots on Windows

From: von Löwis Martin <Martin.vonLoewis_at_hpi.uni-potsdam.de>
Date: 2006-02-06 14:07:04 CET

> I think you are missing the point. Subversion goes to write
> a file to disk and the operating system (in its infinite
> wisdom) changes the name of the file without informing
> Subversion that there was a problem. The next time round,
> Subversion tries to compare the list of filenames stored in
> the admin files with the list returned by the OS and notices
> "Oh there is a file missing!" QED

In the specific case, it doesn't need to list the contents
of the directory. In fact, if you want to find out whether
a certain file is present, listing the directory contents
is not the smartest way. Use stat(2)/GetFileAttributesW()
to find out whether a certain file exists.

So Subversion *could* find out easily and efficiently that
the file it created is indeed still there.

Regards,
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 6 14:08:41 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.