From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA23825; Wed, 23 Jun 2004 17:20:16 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA24429 for ; Wed, 23 Jun 2004 17:20:15 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i5NFKBEV000778 for ; Wed, 23 Jun 2004 17:20:13 +0200 Received: from [192.168.1.200] (ppp215-31.lns1.syd2.internode.on.net [203.122.215.31]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i5NFK34Y001501; Thu, 24 Jun 2004 00:50:04 +0930 (CST) Subject: Re: [Caml-list] file copy From: skaller Reply-To: skaller@users.sourceforge.net To: Sebastien Ferre Cc: caml-list In-Reply-To: <40D9A7E7.2060703@aber.ac.uk> References: <40D9A7E7.2060703@aber.ac.uk> Content-Type: text/plain Message-Id: <1088003992.1941.60.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 24 Jun 2004 01:20:01 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40D99FAB.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sourceforge:01 2004:99 gall:01 le-gall:01 9660:01 glebe:01 ocaml:01 command:98 command:98 nsw:01 snail:02 unix:02 checkout:02 2037:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 2004-06-24 at 01:55, Sebastien Ferre wrote: > Hi, > > is there any function in OCaml for copying a file > like with the Unix command 'cp' ? I wish to avoid > using the function Sys.command to keep platform > independency. You may consider: ocaml-fileutils. ---------------- This library is intended to provide a basic interface to the most common file and filename operation. It provides different filename function : reduce, make_absolute, make_relative... It also enables to manipulate real file : cp, mv, rm, touch... AUTHOR: Sylvain LE GALL AVAILABLE: http://www.carva.org/sylvain.le-gall/ocaml-fileutils.html -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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