[LISTFILES]
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 16182
interpreted = N
texte = 2.1 PI MacI have several maintainance scripts which perform actions (like MOVEFILE)on batches of cart files. Currently, I have to use [LISTFILES] to get acount of the number of files in a folder, and then go through adecrementing loop to ensure that none of the files are skipped (MOVEFILEwill ruin the index order of files). Each loop requires another LISTFILESand a SHOWIF the file index = the loop index.It all works, but it's causing an enormous load on the server, causing someactions like [REPLACE] and [APPEND] to work incorrectly (or time out?).I'm not exactly sure how [LISTFILES] works, but I'm pretty sure that itdoesn't cache filenames. If it does, it doesn't index by them. It wouldbe really helpful if it *did* index by file name. This would ensure thatthe correct files are being hit during any actions inside a LISTFILES loop.Maybe change [LISTFILES] to [LISTFILES index=filename] (defaults to systemorder if no index is specified). Is this feasible?I have a similar gripe with [LINEITEMS] (it would be nice it reference alineitem by SKU), but that hasn't caused too many problems for me.I suppose I could just write out my file list to a database and call it upfrom there, but I'm not too anxious to start writing out more files than Ialready am.MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Associated Messages, from the most recent to the oldest:
2.1 PI MacI have several maintainance scripts which perform actions (like MOVEFILE)on batches of cart files. Currently, I have to use
[listfiles] to get acount of the number of files in a folder, and then go through adecrementing loop to ensure that none of the files are skipped (MOVEFILEwill ruin the index order of files). Each loop requires another LISTFILESand a SHOWIF the file index = the loop index.It all works, but it's causing an enormous load on the server, causing someactions like
[replace] and
[append] to work incorrectly (or time out?).I'm not exactly sure how
[listfiles] works, but I'm pretty sure that itdoesn't cache filenames. If it does, it doesn't index by them. It wouldbe really helpful if it *did* index by file name. This would ensure thatthe correct files are being hit during any actions inside a LISTFILES loop.Maybe change
[listfiles] to [LISTFILES index=filename] (defaults to systemorder if no index is specified). Is this feasible?I have a similar gripe with
[lineitems] (it would be nice it reference alineitem by SKU), but that hasn't caused too many problems for me.I suppose I could just write out my file list to a database and call it upfrom there, but I'm not too anxious to start writing out more files than Ialready am.MichaelMichael Winston *By Phone!: (503)/652/8815 x341Internet Coordinator *By e-mail!: michaelw@dhorse.comDark Horse Comics, Inc. *By web!: http://www.dhorse.com/
Michael Winston
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:
Separate SSL Server (1997)
Lambada for Macintosh is Here! (1996)
Re1000001: Setting up shop (1997)
2.0Beta Command Ref (can't find this instruction) (1997)
problems with dos and tracert + webDNA (1998)
Error Log.db --however (1997)
$append (1998)
Date Math (1999)
attachment (2000)
Nesting format tags (1997)
Combining search criteria (2000)
[WebDNA] writefile (2009)
HELP WITH DATES (1997)
Web Delivery Page concept (1997)
Mac 2.1b4 unknown error: BadSuffix (1997)
Occasional crashes with $remove (1997)
Separate SSL Server (1997)
Protecting Files (2005)
WebTV, IPAddress, Cookies, IDEAS?? (1998)
[WebDNA] Quick sort/results grouping Q (2008)