Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Unix.stat sometimes fails on Win32 port
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] Unix.stat sometimes fails on Win32 port
On Wed, Aug 06, 2003 at 03:49:49PM +0100, Richard Jones wrote:
> On Wed, Aug 06, 2003 at 07:39:02AM -0700, David Brown wrote:
> > Unix is being nice to you in stripping off the final slash.  Would it be
> > possible to wrap the stat call in something that checks for and removes
> > a trailing slash?
> I worked around it by adding a "." to the end of the path in my
> "is_dir" function if it's Windows and if it ends with a "\\" already,
> but that still doesn't stop it from being a bug.

But, it would be just as valid to argue that Unix has a bug in that it
doesn't detect an incorrectly formed pathname.

Dave Brown

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: