Version française
Home     About     Download     Resources     Contact us    
Browse thread
Bug in Filename.basename?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oliver Bandel <oliver@f...>
Subject: Re: [Caml-list] Bug in Filename.basename?
Zitat von Oliver Bandel <oliver@first.in-berlin.de>:
[...]
>
> ================================================
> # Filename.basename "/usr/lib";;
> - : string = "lib"
> # Filename.basename "/usr/";;
> - : string = "."
> # Filename.dirname "/usr/lib";;
> - : string = "/usr"
> # Filename.dirname "/usr/";;
> - : string = "/usr"
> #
> ================================================
>
> "/usr/" is a directory. So, Filename.dirname should give "usr".
>
[...]

No, this is a typo: it should give "/usr", as it does. :)

Ciao,
  Oliver