From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA20806; Wed, 6 Aug 2003 16:49:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA20805 for ; Wed, 6 Aug 2003 16:49:51 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h76EnoT10126 for ; Wed, 6 Aug 2003 16:49:50 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19kPbq-0007ju-00 for ; Wed, 06 Aug 2003 15:49:50 +0100 Date: Wed, 6 Aug 2003 15:49:49 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Unix.stat sometimes fails on Win32 port Message-ID: <20030806144949.GA29704@redhat.com> References: <20030806100225.GA27730@redhat.com> <20030806143902.GA29030@davidb.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030806143902.GA29030@davidb.org> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 bug:01 freshmeat:01 ltd:98 0700,:01 06,:02 unix:02 business:96 wrote:03 data:03 aug:05 path:06 wrap:06 stat:07 fails:07 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. "My karma ran over your dogma" ------------------- 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