<?xml version="1.0" encoding="windows-1252"?>
<node id="1014462" title="Re^7: Finding and sorting files in massive file directory" created="2013-01-21 10:25:35" updated="2013-01-21 10:25:35">
<type id="11">
note</type>
<author id="341121">
dave_the_m</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;i&gt; What would it add over and above using readdir with while and basic unix commands
&lt;/i&gt;&lt;/blockquote&gt;
It allows you to programmatically to select, add files etc, without having to fork out to an external program. For example,  if you didn't need to delete the files afterwards, you could have just used my original script, with $tar-&gt;add($file) for each matching file. No need to fork out, no command line length limitations etc.
&lt;p&gt;
Dave.</field>
<field name="root_node">
1014320</field>
<field name="parent_node">
1014439</field>
</data>
</node>
