/usr/share/doc/libmikmatch-ocaml-dev/mikmatch-ocamldoc/Mikmatch.Glob.html is in libmikmatch-ocaml-dev 1.0.8-1build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="Start" href="index.html">
<link rel="previous" href="Mikmatch.Directory.html">
<link rel="Up" href="Mikmatch.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="Mikmatch" rel="Chapter" href="Mikmatch.html"><title>Mikmatch.Glob</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Mikmatch.Directory.html" title="Mikmatch.Directory">Previous</a>
<a class="up" href="Mikmatch.html" title="Mikmatch">Up</a>
</div>
<h1>Module <a href="type_Mikmatch.Glob.html">Mikmatch.Glob</a></h1>
<pre><span class="keyword">module</span> Glob: <code class="code">sig</code> <a href="Mikmatch.Glob.html">..</a> <code class="code">end</code></pre><hr width="100%">
<br>
A generic file path matching utility<br>
<pre><span id="VALscan"><span class="keyword">val</span> scan</span> : <code class="type">?absolute:bool -><br> ?path:bool -><br> ?root:string -><br> ?nofollow:bool -> (string -> unit) -> (string -> bool) list -> unit</code></pre><div class="info ">
<code class="code">scan action path_filter</code> returns all the file paths having a name
that matches <code class="code">path_filter</code>. <code class="code">path_filter</code> is a list of filters that
test whether a directory name or a file name should be selected.
<p>
The path search starts from the current directory by default, or
from the directory specified by the <code class="code">root</code> option. The file names
are examined in an undefined order. When a file path matches,
<code class="code">action</code> is applied to the string representing the path.
Options <code class="code">absolute</code> and <code class="code">path</code> have the same meaning and the same
default values as in <a href="Mikmatch.Directory.html#VALlist"><code class="code">Mikmatch.Directory.list</code></a>.
<p>
<code class="code">nofollow</code> can be used to prevent from considering symbolic links
as directories. It is false by default.
See also <a href="Mikmatch.Directory.html#VALis_dir"><code class="code">Mikmatch.Directory.is_dir</code></a>.<br>
</div>
<pre><span id="VALlscan"><span class="keyword">val</span> lscan</span> : <code class="type">?rev:bool -><br> ?absolute:bool -><br> ?path:bool -><br> ?root:string list -><br> ?nofollow:bool -> (string list -> unit) -> (string -> bool) list -> unit</code></pre><div class="info ">
Same as <a href="Mikmatch.Glob.html#VALscan"><code class="code">Mikmatch.Glob.scan</code></a> but file paths are kept as a list
of strings that form a valid path when concatenated using
<code class="code">Filename.concat</code>. Option <code class="code">rev</code> can be set if the lists representing
paths are in reversed order, i.e. the root comes last.
<p>
In <code class="code">lscan action path_filter</code>, options <code class="code">rev</code>, <code class="code">absolute</code>, and <code class="code">path</code>
take their default values which are all false.
In this situation, it is guaranteed that the paths that are passed
to <code class="code">action</code> have the same length as <code class="code">path_filter</code>.<br>
</div>
<pre><span id="VALlist"><span class="keyword">val</span> list</span> : <code class="type">?absolute:bool -><br> ?path:bool -><br> ?root:string -><br> ?nofollow:bool -> ?sort:bool -> (string -> bool) list -> string list</code></pre><div class="info ">
<code class="code">list path_filter</code> works like <a href="Mikmatch.Glob.html#VALscan"><code class="code">Mikmatch.Glob.scan</code></a> but returns a list
of all file paths that match <code class="code">path_filter</code>.
<p>
An example in Mikmatch syntax is <code class="code">list [FILTER _* ".ml" eos]</code>.
It returns the list of ".ml" files in the current directory.
It could have been written as
<code class="code">list [ fun s -> Filename.check_suffix s ".ml"]</code> and is equivalent
to <code class="code">*.ml</code> in shell syntax.<br>
</div>
<pre><span id="VALllist"><span class="keyword">val</span> llist</span> : <code class="type">?rev:bool -><br> ?absolute:bool -><br> ?path:bool -><br> ?root:string list -><br> ?nofollow:bool -> ?sort:bool -> (string -> bool) list -> string list list</code></pre><div class="info ">
<code class="code">llist path_filter</code> works like <a href="Mikmatch.Glob.html#VALlscan"><code class="code">Mikmatch.Glob.lscan</code></a>
but returns a list
of all file paths that match <code class="code">path_filter</code>.<br>
</div>
</body></html>
|