🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #6234

Re: AmigaDOS questions!!

#6234
From: Steve Palm
Date: Tue, 30 Oct 1990 00:13
26 lines
1535 bytes
 In article <34801@nigel.ee.ude.edu>, new@ee.udel.edu writes:
 DN> >What is the "accepted" way of scanning through a directory using 
 DN> Examine(),
 DN> >ExNext() while deleting the files as you go?  Is there an alternative to
 DN> >having to restart the scan each time you delete a file?
 DN> 
 DN> Just as a guess, I would say the easiest way would probably be to allocate
 DN> memory and hold the names of the files you want to delete all at once. 
 DN> If you run out of memory, delete those files and restart the scan. - 
 DN> Darren
 DN> -- 
 DN> --- Darren New --- Grad Student --- CIS --- Univ. of Delaware ---
 
 Wouldn't it be acceptable to 'follow' the scan, one entry behind?  Then you 
can delete the last-to-next entry.  When you hit the end of the list, you 
delete not only the last-to-next, but also right up to the end.
 
 If there is a fault in the above logic, then so be it. ;^)


--  
     ///  AMIGA: | Steve Palm, Sysop of FidoNet node 1:11/16
    ///  FOR THE | UUCP: {gatech,ames,rutgers}!ncar!asuvax!stjhmc!myamiga!smp
\\\///  CREATIVE | INTERNET: [not yet available]
 \XX/     MIND   |_________________________________________________________ 
Technical Details
Message-ID: <88.272D096B@myamiga.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!fps!myamiga!smp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!fps!myamiga!smp
From: smp@myamiga.UUCP (Steve Palm)
Newsgroups: comp.sys.amiga.tech
Subject: Re:  AmigaDOS questions!!
Message-ID: <88.272D096B@myamiga.UUCP>
Date: 30 Oct 90 00:13:28 GMT
Organization: The Siberian Amiga --- Sault Ste. Marie, MI
Lines: 26