Version française
Home     About     Download     Resources     Contact us    
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 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 caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners