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:39)
From: David Brown <caml-list@d...>
Subject: Re: [Caml-list] Unix.stat sometimes fails on Win32 port
On Wed, Aug 06, 2003 at 11:02:25AM +0100, Richard Jones wrote:
> Demonstration program below. Basically if you compile this and run
> 	winfiletest d c:\
> 	winfiletest d c:\temp
> 	winfiletest d c:\temp\      <-- this one fails
> 	winfiletest d c:\temp\.
> This is specifically a problem with lablgtk2 which returns directory
> names with a trailing slash from the file selection dialog. Works OK
> on the Unix port, but fails under Windows.

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?

Dave Brown

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