Equivalent of "du" utility in Unix or Sys module ?

"[email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
In the ocaml interpreter, I can type 

Sys.command "du -d 1 pathformydirectory ";;

to inspect the disk usage in a given directory.

The problem is, the result is of type unit and I would prefer a result of type, say, (string*int) list.

 Is there a function from the Unix or Sys module that does this ?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.