caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Sylvain LE GALL" <sylvain.le-gall@polytechnique.org>
To: caml-list@inria.fr
Subject: [Caml-list] [ANN] OCaml fileutils v0.2.1
Date: Thu, 20 May 2004 19:06:26 +0200	[thread overview]
Message-ID: <20040520170527.GA11115@grand> (raw)

Hello,

I have been working for some times on a collection of utils to
manipulate files following some UNIX convention. I provide for now those
function :
- cp : copy
- mv : move/rename
- ls : list ( pretty dummy )
- find : find a set of file according to a predicate ( is directory, is
  readable... )
- rm : delete file/directory ( can prompt, can delete children )
- mkdir : create a directory ( and optionnaly it's parent )
- test : do some test regarding a file ( is directory... )
- touch : update the mtime of a file 
- which : find an exec in a path

This module is FileUtil

All those function are based for now on the Unix module or the core
ocaml ( mostly Sys ). There is no C stub at all.

I provide by the same way a library for manipulating filename. It allows
to compute some intersting things :
- make_relative : make a path relative to a root path
- make_absolute : make an absolute path out of a relative path and a
  root
- compare : hierachical + lexicographic order
- reduce : remove any a/../b, a/./b ...

This module is FilePath

FilePath is abstract and doesn't need to have a real filesystem*.
FileUtil rely on the existence of a filesystem.

Theorically it should be platform independent ( FilePath comes with four
parser/lexer for each platform supported by ocaml : MacOS, Win32,
Cygwin, Unix ). This should also imply that FileUtil is platform
independent ( but it needs to be tested ).

You can find the source and documentation here :
http://www.carva.org/sylvain.le-gall/ocaml-fileutils.html
http://sylvain.le-gall.net/ocaml-fileutils.html

( webpages are in french, but documentation is in english -- sorry )

Don't hesitate to send any feedback/recommendation/bugs. 

Kind regard
Sylvain Le Gall

-------------------
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


             reply	other threads:[~2004-05-20 17:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-20 17:06 Sylvain LE GALL [this message]
2004-05-20 17:35 ` Eric Stokes
2004-05-20 17:47 ` Karl Zilles
2004-05-20 18:07   ` Sylvain LE GALL
2004-05-21 14:10 ` John Goerzen
2004-05-21 18:24   ` Sylvain LE GALL
2004-05-21 19:56     ` John Goerzen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040520170527.GA11115@grand \
    --to=sylvain.le-gall@polytechnique.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).