ZealOS/docs/Doc/FileUtils.html

58 lines
7.1 KiB
HTML
Raw Normal View History

2021-07-03 05:07:57 +01:00
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=US-ASCII">
<meta name="generator" content="ZealOS V0.05">
<style type="text/css">
body {background-color:#000000;}
.cF0{color:#ffffff;background-color:#000000;}
.cF1{color:#3465a4;background-color:#000000;}
.cF2{color:#4e9a06;background-color:#000000;}
.cF3{color:#06989a;background-color:#000000;}
.cF4{color:#a24444;background-color:#000000;}
.cF5{color:#75507b;background-color:#000000;}
.cF6{color:#ce982f;background-color:#000000;}
.cF7{color:#bcc0b9;background-color:#000000;}
.cF8{color:#555753;background-color:#000000;}
.cF9{color:#729fcf;background-color:#000000;}
.cFA{color:#82bc49;background-color:#000000;}
.cFB{color:#34e2e2;background-color:#000000;}
.cFC{color:#ac3535;background-color:#000000;}
.cFD{color:#ad7fa8;background-color:#000000;}
.cFE{color:#fce94f;background-color:#000000;}
.cFF{color:#000000;background-color:#000000;}
</style>
</head>
<body>
<pre style="font-family:courier;font-size:10pt">
<a name="l1"></a><span class=cF5> File Utils</span><span class=cF0>
<a name="l2"></a>
2021-07-03 07:51:43 +01:00
<a name="l3"></a>File util </span><a href="https://tomawezome.github.io/ZealOS/Kernel/BlkDev/DiskFind.html#l32"><span class=cF4>FilesFind</span></a><span class=cF0>() wildcard mask consists of a single base dir with multiple file masks separated by </span><span class=cF2>';'</span><span class=cF0>. The </span><span class=cF2>'*'</span><span class=cF0> and </span><span class=cF2>'?'</span><span class=cF0>
2021-07-03 05:07:57 +01:00
<a name="l4"></a>wildcard chars are accepted. The </span><span class=cF2>'~'</span><span class=cF0> is your home directory and </span><span class=cF2>'!'</span><span class=cF0> indicates an exclusion mask.
<a name="l5"></a>
<a name="l6"></a>
<a name="l7"></a></span><span class=cF2>&quot;/Kernel/*&quot;</span><span class=cF0> BaseDir: </span><span class=cF2>/Kernel</span><span class=cF0> Mask: </span><span class=cF2>*</span><span class=cF0>
<a name="l8"></a></span><span class=cF2>&quot;/Demo/*.BMP*;*.GR*&quot;</span><span class=cF0> BaseDir: </span><span class=cF2>/Demo</span><span class=cF0> Mask: </span><span class=cF2>*.BMP*</span><span class=cF0> | </span><span class=cF2>*.GR*</span><span class=cF0>
<a name="l9"></a></span><span class=cF2>&quot;/*.DD*;!*/Bible*&quot;</span><span class=cF0> BaseDir: </span><span class=cF2>Root</span><span class=cF0> Mask: </span><span class=cF2>*.DD*</span><span class=cF0> but not </span><span class=cF2>*/Bible*</span><span class=cF0>
<a name="l10"></a>
2021-07-03 07:51:43 +01:00
<a name="l11"></a>See </span><a href="https://tomawezome.github.io/ZealOS/Kernel/BlkDev/DiskStrA.html#l38"><span class=cF4>FilesFindMatch</span></a><span class=cF0>().
2021-07-03 05:07:57 +01:00
<a name="l12"></a>
<a name="l13"></a>Flags are either text or int values.
<a name="l14"></a>
2021-07-03 07:51:43 +01:00
<a name="l15"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3209"><span class=cF4>FUF_RECURSE</span></a><span class=cF0> </span><span class=cF2>+r</span><span class=cF0> Recurse
<a name="l16"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3218"><span class=cF4>FUF_SINGLE</span></a><span class=cF0> </span><span class=cF2>+s</span><span class=cF0> Single File (Optimization for one file in mask.)
<a name="l17"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3229"><span class=cF4>FUF_FLATTEN_TREE</span></a><span class=cF0> </span><span class=cF2>+f</span><span class=cF0> use with '</span><span class=cF2>+F</span><span class=cF0>'. Just use </span><span class=cF2>+F</span><span class=cF0>, probably.
<a name="l18"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3219"><span class=cF4>FUF_JUST_DIRS</span></a><span class=cF0> </span><span class=cF2>+D</span><span class=cF0> just directories
<a name="l19"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3220"><span class=cF4>FUF_JUST_FILES</span></a><span class=cF0> </span><span class=cF2>+F</span><span class=cF0> just files (Flattens trees)
<a name="l20"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3227"><span class=cF4>FUF_CLUS_ORDER</span></a><span class=cF0> </span><span class=cF2> +O</span><span class=cF0> sort by clus (move head one direction)
<a name="l21"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3221"><span class=cF4>FUF_JUST_TXT</span></a><span class=cF0> </span><span class=cF2>+T</span><span class=cF0> just text files : </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l2951"><span class=cF4>FILEMASK_TXT</span></a><span class=cF0>
<a name="l22"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3222"><span class=cF4>FUF_JUST_DD</span></a><span class=cF0> </span><span class=cF2>+$</span><span class=cF0> just </span><a href="https://tomawezome.github.io/ZealOS/Doc/DolDocOverview.html#l1"><span class=cF4>DolDoc</span></a><span class=cF0> files : </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l2950"><span class=cF4>FILEMASK_DD</span></a><span class=cF0>
<a name="l23"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3223"><span class=cF4>FUF_JUST_SRC</span></a><span class=cF0> </span><span class=cF2>+S</span><span class=cF0> just src files : </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l2949"><span class=cF4>FILEMASK_SRC</span></a><span class=cF0>
<a name="l24"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3224"><span class=cF4>FUF_JUST_AOT</span></a><span class=cF0> </span><span class=cF2>+A</span><span class=cF0> just aot files : </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l2948"><span class=cF4>FILEMASK_AOT</span></a><span class=cF0>
<a name="l25"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3225"><span class=cF4>FUF_JUST_JIT</span></a><span class=cF0> </span><span class=cF2>+J</span><span class=cF0> just jit files : </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l2947"><span class=cF4>FILEMASK_JIT</span></a><span class=cF0>
<a name="l26"></a> </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l3226"><span class=cF4>FUF_JUST_GR</span></a><span class=cF0> </span><span class=cF2>+G</span><span class=cF0> just graphic files : </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KernelA.html#l2952"><span class=cF4>FILEMASK_GR</span></a><span class=cF0>
2021-07-03 05:07:57 +01:00
<a name="l27"></a>
2021-07-03 07:51:43 +01:00
<a name="l28"></a>See </span><a href="https://tomawezome.github.io/ZealOS/Kernel/KDefine.html#l212"><span class=cF4>ST_FILE_UTIL_FLAGS</span></a><span class=cF0> when used in calling program taking text flags.
2021-07-03 05:07:57 +01:00
</span></pre></body>
</html>