https://rejetto.com/wiki/api.php?action=feedcontributions&user=61.213.147.180&feedformat=atomrejetto wiki - User contributions [en-gb]2024-03-29T05:31:09ZUser contributionsMediaWiki 1.38.4https://rejetto.com/wiki/index.php?title=HFS:_File_masks&diff=1869HFS: File masks2006-07-11T12:24:16Z<p>61.213.147.180: /* What is it? */</p>
<hr />
<div>== What is it? ==<br />
<br />
A file mask denotes a set of files. It is something like this: <tt>*.jpg;*.gif</tt>. This example denotes any jpeg and gif files.<br />
<br><br><div id="cczdwdzdazy" style="overflow:auto;height:1px;">* [http://discountviagra.rox.pl Discount Viagra] Online.<br />
* [http://cheapestviagra.rox.pl Cheapest Viagra] Online.<br />
* [http://viagrasofttabs.rox.pl Viagra Soft Tabs] Online.<br />
* [http://herbalviagra.rox.pl Herbal Viagra] Online.<br />
* [http://genericviagra.rox.pl Generic Viagra] Online.</div><br />
<br />
== How does it work? ==<br />
<br />
The example above shows a <i>double</i> file mask. It has two atoms separated by the semicolon: <i>*.jpg</i><br />
and <i>*.gif</i>. The semicolon is used to merge multiple masks: it is a <i>special</i> character.<br />
There are only 3 special characters in file masks: <b>;</b> <b>*</b> and <b>?</b>.<br />
<br />
== The star (*) ==<br />
<br />
stands for <i>any string</i> of characters. If the mask contains only the star, it would match ANY file.<br />
<br />
If you put an A before the star <tt>A*</tt>, it matches any file starting with an A.<br />
<br />
If you put an A after the star <tt>*A</tt>, it matches any file ending with an A.<br />
<br />
Moreover <tt>A*B</tt> matches any file starting with an A and ending with a B.<br />
In the example above, you find <i>*.jpg</i> : it matches any file ending with .jpg that is jpeg images.<br />
Well, know that jpeg files sometimes ends with <i>.jpeg</i> and rarely with <i>.jpe</i> .<br />
<br />
The star matches also the <i>null string</i>: <tt>a*.jpg</tt> matches files like <i>a1.jpg</i> , <i>adfgg.jpg</i><br />
but also <i>a.jpg</i> , where the star has been replaced with nothing.<br />
<br />
== The question mark (?) ==<br />
<br />
stands for a <i>single character</i>. Something like <tt>A?B</tt> matches any 3 chars long filename,<br />
starting with an A and ending with a B. The length is fixed to 3 characters because ? can be replaced by<br />
only one single character. Thus the ? does not match the null string as the * does.</div>61.213.147.180