Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001222OCaml~DO NOT USE (was: OCaml general)public2002-07-04 11:122013-08-31 12:46
Assigned To 
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001222: feature wish about dirname and basename in module Filename
DescriptionFull_Name: Claude Marché
Version: ocaml 3.04
OS: linux
Submission from: (

if I want both the dirname and the basename of a file f I need to

let (d,b) = (Filename.dirname f, Filename.basename f) in ...

which is probably twice the same job, it would be nice to have an additional

  Filename.split : string -> string * string

returning both dirname and basename at the same time.

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
doligez (administrator)
2012-01-25 14:44

It is _not_ twice the same job, and the dirname/basename rules (which are now [in trunk] based on the POSIX specification) are a bit too involved to compute them both at the same time.

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue
2012-01-25 14:44 doligez Note Added: 0006793
2012-01-25 14:44 doligez Status acknowledged => resolved
2012-01-25 14:44 doligez Resolution open => won't fix
2012-01-25 14:44 doligez Description Updated View Revisions
2013-08-31 12:46 xleroy Status resolved => closed
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker