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
[Caml-list] [ANN] ocaml-fileutils v 0.3.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-29 (20:27)
From: Sylvain LE GALL <sylvain.le-gall@p...>
Subject: [Caml-list] [ANN] ocaml-fileutils v 0.3.0
Hello all,

I am pleased to announce a new release of ocaml-fileutils.

This library implements some new function :
- cmp : compare file
- du : give the disk usage of some files
- stat : abstraction of Unix.stat
- readlink : return a path with link solved to real location

This new version comes in particular with a rewritten "find" command
which take an "exec" and "accu" parameter allowing to customize the
operation done during the directory traversal. ( You can have the same
behavior of the previous find command by this way : 
find test current_dir (fun lst fln -> fln :: lst) [] ). This new command
embed a recursion prevention system, allowing not to traverse the same
directory twice ( ie, it handles symlink like : ln -s . recurse ). 

Most of the command also provide a ~follow parameter which dictate the
way ocaml-fileutils should follow symlink ( by default Skip, but can
also be Follow, AskFollow, SkipInform... )

General :
Ocaml fileutils is aimed to be a platform independent library to perform 
operation on file like :
- mv
- cp
- rm
- mkdir
- touch
- which...

Comes also with a module to manipulate abstract filename :
- classification
- make_relative : made a filename relative to another
- make_absolute :... 

Link :

Kind regard
Sylvain Le Gall

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: