Browse thread
[Caml-list] file copy
-
Sebastien Ferre
- Maxence Guesdon
- skaller
- padiolea@i...
- sylvain.le-gall@p...
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | padiolea@i... |
| Subject: | Re: [Caml-list] file copy |
> 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. In fact there is no copy operation in a filesystem (observe the output of the command 'strace cp /tmp/titi /tmp/titi'). You can emulate the copy by combining reading and writing, as the cp do, so in ocaml combining functions input and ouput. > I could not find any neither in the standard library, > nor in the Unix library. > > Cheers, > Sébastien > > ------------------- > 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 > ------------------- 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