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 RAA22997; Wed, 23 Jun 2004 17:06:53 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA22964 for ; Wed, 23 Jun 2004 17:06:52 +0200 (MET DST) Received: from tintin.inria.fr (tintin.inria.fr [128.93.24.126]) by concorde.inria.fr (8.12.10/8.12.10) with SMTP id i5NF6pSH008149; Wed, 23 Jun 2004 17:06:51 +0200 Date: Wed, 23 Jun 2004 17:06:51 +0200 From: Maxence Guesdon To: Sebastien Ferre Cc: caml-list@inria.fr Subject: Re: [Caml-list] file copy Message-Id: <20040623170651.1afb7f5b@tintin.inria.fr> In-Reply-To: <40D9A7E7.2060703@aber.ac.uk> References: <40D9A7E7.2060703@aber.ac.uk> Organization: INRIA X-Mailer: Sylpheed version 0.9.10claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 40D99C8B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; maxence:01 guesdon:01 maxence:01 guesdon:01 caml-list:01 2004:99 aber:99 didier:01 remy's:01 ocaml:01 remy:01 0000:98 command:98 command:98 unix:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 23 Jun 2004 15:55:19 +0000 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. > I could not find any neither in the standard library, > nor in the Unix library. You can find it in Didier Remy's course about system programming : http://pauillac.inria.fr/~remy/poly/system/camlunix/fich.html#toc13 Hope this helps, Maxence Guesdon ------------------- 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