[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



	write a small program that will process all files in a 			designated dir, which 
contains files and dirs, by examining each 	file entry and sums it to a 
total, which is less than some 			arbitrarily entered size, [in this case 
<=650MB since the purpose 	is to aggregate chunks of the original dir into 
separate dirs <=650MB for burning to a CD], and if the total <=650MB, 
then, move that entry into the new "burn" dir, and continue until a 
total <=650MB is reached, then stop.

In this way I can take an arbitrary size dir and allocate it to any 
number of burn dirs of <=650MB, then burn 'em.

-------------------------------------------------------------------------
2 Problems:

1-The compiler is complaining about uninitialed variables within a 
"while" loop. How do I properly initialize numeric variables within the 
loop ?

2-I also need to traverse a dir that itself contains dirs, processing 
each file and dir. How do I traverse such a dir such that....when a dir 
is encountered it is entered and all the files in it are then processed, 
and if necessary drills down through other dirs [howto control depth 
?]...before returning to the original dir that contained files and dirs ?

--------------------------------------------------------------------------


Appreciatively,
Courtney



-- 
s/v Mutiny
Rhodes Bounty II
lying Oriental, NC
WDB5619


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00531" href="msg00531.html">[ale] 2 Perl questions ?</a></strong>
<ul><li><em>From:</em> sriad at uab.edu (Aditya Srinivasan)</li></ul></li>
<li><strong><a name="00534" href="msg00534.html">[ale] 2 Perl questions ?</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00528.html">[ale] Re: OT: Writing Mozilla Thunderbird extensions</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00530.html">[ale] 2 Perl questions ?</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00526.html">[ale] backing up Mac CD's</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00531.html">[ale] 2 Perl questions ?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00529"><strong>Date</strong></a></li>
<li><a href="threads.html#00529"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>