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
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: 2007-09-05 (12:15)
From: Mattias EngdegÄ rd <mattias@v...>
Subject: Re: [Caml-list] Bug in Filename.basename?
>Looking at that documentation, I can't see no bug in the implementation.

As an extra data point, Python's os.path.basename("a/b/c/") returns "".
It is defined to return "the final component of a pathname".

Python's basename/dirname pair have the same concatenative properties
as O'Caml's so this makes sense in both languages.

This is probably also more useful than the semantics of basename(1).