Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c782381a39197ec6eb4e91f792f8f121 > files > 39

ocaml-fileutils-devel-0.4.0-3.fc13.i686.rpm

<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="FileUtil" rel="Chapter" href="FileUtil.html">
<link title="FileUtilStr" rel="Chapter" href="FileUtilStr.html">
<link title="FilePath" rel="Chapter" href="FilePath.html"><title>FileUtil.du</title>
</head>
<body>
<code class="code"><span class="keyword">let</span>&nbsp;du&nbsp;fln_lst&nbsp;=&nbsp;<br>
&nbsp;&nbsp;<span class="keyword">let</span>&nbsp;du_aux&nbsp;(sz,&nbsp;lst)&nbsp;fln&nbsp;=&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">let</span>&nbsp;st&nbsp;=&nbsp;stat&nbsp;fln<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">in</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;(size_add&nbsp;sz&nbsp;st.size,&nbsp;(fln,&nbsp;st.size)&nbsp;::&nbsp;lst)<br>
&nbsp;&nbsp;<span class="keyword">in</span><br>
&nbsp;&nbsp;<span class="constructor">List</span>.fold_left&nbsp;<br>
&nbsp;&nbsp;(<span class="keyword">fun</span>&nbsp;(accu&nbsp;:&nbsp;size&nbsp;*&nbsp;(filename&nbsp;*&nbsp;size)&nbsp;list)&nbsp;fln&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;find&nbsp;<span class="constructor">True</span>&nbsp;fln&nbsp;du_aux&nbsp;accu)&nbsp;<br>
&nbsp;&nbsp;(<span class="constructor">B</span>&nbsp;0<span class="constructor">L</span>,&nbsp;[])<br>
&nbsp;&nbsp;fln_lst</code></body></html>