Re: EmailCompleted Clean Up

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 38505
interpreted = N
texte = On 9/7/01 5:59 PM, Sam Lewis wrote:>> Green) a deletefile inside a listfiles only deletes Every Other matching >> file. What a weird fluke. >> > > It only deletes every other file because the index is dynamic while > in the listfiles loop. If you want to do it right then build a list > of items to delete while inside the listfiles loop and then delete > them with a listwords loop on the list that you built. > > for example: > > [text]myList=[listfiles somefolder][filename]|[/listfiles][/text] > > [listwords words=myList&delimiters=|] > [deletefile somefolder/[word]] > [/listwords]Hmm, interesting. I wonder how well the text field would word with a list of 12K file names. Hmmm, I'll have to try it tonight to see!!!!Another idea... Issue a deletefolder of the emaailcompleted, then immediately create a new folder in it's place... You gotta have steel 'nads to try this one.Either way, I wonder how much directory damage is caused by these methods (not to mention the initial writeout of several hundred/thousand/tens of thousands of essentially temp files... -- Brian B. Burton ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: EmailCompleted Clean Up (Bob Minor 2001)
  2. Re: EmailCompleted Clean Up (Brian B. Burton 2001)
  3. Re: EmailCompleted Clean Up (Glenn Busbin 2001)
  4. Re: EmailCompleted Clean Up (Sam Lewis 2001)
  5. Re: EmailCompleted Clean Up (Brian B. Burton 2001)
  6. Re: EmailCompleted Clean Up (Bob Minor 2001)
  7. EmailCompleted Clean Up (Clint Davis 2001)
On 9/7/01 5:59 PM, Sam Lewis wrote:>> Green) a deletefile inside a listfiles only deletes Every Other matching >> file. What a weird fluke. >> > > It only deletes every other file because the index is dynamic while > in the listfiles loop. If you want to do it right then build a list > of items to delete while inside the listfiles loop and then delete > them with a listwords loop on the list that you built. > > for example: > > [text]myList=[listfiles somefolder][filename]|[/listfiles][/text] > > [listwords words=myList&delimiters=|] > [deletefile somefolder/[word]] > [/listwords]Hmm, interesting. I wonder how well the text field would word with a list of 12K file names. Hmmm, I'll have to try it tonight to see!!!!Another idea... Issue a deletefolder of the emaailcompleted, then immediately create a new folder in it's place... You gotta have steel 'nads to try this one.Either way, I wonder how much directory damage is caused by these methods (not to mention the initial writeout of several hundred/thousand/tens of thousands of essentially temp files... -- Brian B. Burton ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Brian B. Burton

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCat2 - Getting to the browser's username/password data (1997) WebDNA on Red Hat Enterprise Linux 4 x64 (2006) RE: Problems with shopping cart (1997) Searching multiple fields (1997) WC2.0 Memory Requirements (1997) Dashes and dots in credit card (1998) WebStar Secure on other machine (1997) Grep help (2004) Return records from another (1997) Initiating NewCart (1997) Calendar using WebCatalog? (1997) Type 11 errors setting up WebCAt 2 (1997) Using Cookie for client specific info? (1997) WebCat odd log behavior (1998) REPOST: How do _you_ back up your db? (2000) # of real domains on 1 web server (1997) WebCat2 - [format thousands] (1997) Webcat run amuk (2002) FM PRO Compatibility Issue - Single Database w/o Conversions (1997) NT BETA BUG???? (1997)