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: 2003-08-06 (14:49)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Unix.stat sometimes fails on Win32 port
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.


Richard Jones.
Merjis Ltd. - all your business data are belong to you.
"My karma ran over your dogma"

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