templeos-info/public/Wb/Doc/FileUtils.DD.HTML

61 lines
6.3 KiB
Plaintext
Raw Normal View History

2024-03-23 13:40:50 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
2024-03-23 13:40:50 +00:00
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
2024-03-23 13:40:50 +00:00
<a name="l1"></a><span class=cF5> File Utils</span><span class=cF0>
<a name="l2"></a>
2024-03-24 21:24:44 +00:00
<a name="l3"></a>File util </span><a href="/Wb/Kernel/BlkDev/DskFind.HC.HTML#l27"><span class=cF4>FilesFind</span></a><span class=cF0>() wildcard mask consists of a single base dir with multiple
2024-03-23 13:40:50 +00:00
<a name="l4"></a>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> wildcard chars are accepted. The </span><span class=cF2>
<a name="l5"></a>'~'</span><span class=cF0> is your home directory and </span><span class=cF2>'!'</span><span class=cF0> indicates an exclusion mask.
<a name="l6"></a>
<a name="l7"></a>
<a name="l8"></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="l9"></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="l10"></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="l11"></a>
2024-03-24 21:24:44 +00:00
<a name="l12"></a>See </span><a href="/Wb/Kernel/BlkDev/DskStrA.HC.HTML#l40"><span class=cF4>FilesFindMatch</span></a><span class=cF0>().
2024-03-23 13:40:50 +00:00
<a name="l13"></a>
<a name="l14"></a>Flags are either text or int values.
<a name="l15"></a>
2024-03-24 21:24:44 +00:00
<a name="l16"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2565"><span class=cF4>FUF_RECURSE</span></a><span class=cF0> </span><span class=cF2>+r</span><span class=cF0> Recurse
<a name="l17"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2576"><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="l18"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2588"><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="l19"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2577"><span class=cF4>FUF_JUST_DIRS</span></a><span class=cF0> </span><span class=cF2>+D</span><span class=cF0> just directories
<a name="l20"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2578"><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="l21"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2586"><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="l22"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2579"><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="/Wb/Kernel/KernelA.HH.HTML#l2304"><span class=cF4>FILEMASK_TXT</span></a><span class=cF0>
<a name="l23"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2580"><span class=cF4>FUF_JUST_DD</span></a><span class=cF0> </span><span class=cF2>+$</span><span class=cF0> just </span><a href="/Wb/Doc/DolDocOverview.DD.HTML#l1"><span class=cF4>DolDoc</span></a><span class=cF0> files : </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2303"><span class=cF4>FILEMASK_DD</span></a><span class=cF0>
<a name="l24"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2581"><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="/Wb/Kernel/KernelA.HH.HTML#l2302"><span class=cF4>FILEMASK_SRC</span></a><span class=cF0>
<a name="l25"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2582"><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="/Wb/Kernel/KernelA.HH.HTML#l2301"><span class=cF4>FILEMASK_AOT</span></a><span class=cF0>
<a name="l26"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2583"><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="/Wb/Kernel/KernelA.HH.HTML#l2300"><span class=cF4>FILEMASK_JIT</span></a><span class=cF0>
<a name="l27"></a> </span><a href="/Wb/Kernel/KernelA.HH.HTML#l2584"><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="/Wb/Kernel/KernelA.HH.HTML#l2305"><span class=cF4>FILEMASK_GR</span></a><span class=cF0>
2024-03-23 13:40:50 +00:00
<a name="l28"></a>
2024-03-24 21:24:44 +00:00
<a name="l29"></a>See </span><a href="/Wb/Kernel/KDefine.HC.HTML#l111"><span class=cF4>ST_FILE_UTIL_FLAGS</span></a><span class=cF0> when used in calling program taking text flags.
2024-03-23 13:40:50 +00:00
</span></pre></body>
</html>