[WebDNA] How does waitforfile actually work?

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102709
interpreted = N
texte = > > Third problem: WebDNA fails to delete the undesirable > > newly recreated empty cart file via the following > > deletefile tag even though its permissions are 777. > > Why does it fail to delete this file and how can I make > > it delete this file? > > > > [deletefile ../CartFiles/[cart]] > > Though I don't know if it will solve your problem, that > is not the syntax I use for deletefile. Try: > [deletefile file=xxx] (such as in the docs) Mine and yours both work when I test the movefile and delete tags on a page that does not have an orderfile context above those tags. In other words, apparently the orderfile context is not closing the file before the movefile and delete tags are invoked, and that's probably why they don't work properly in this situation. This brings up a question: Have you looked at the waitforfile code and if so, does it wait for the designated file to be closed by WebDNA or another application before proceeding? Or does it simply look to see if the file exists before proceeding? Sincerely, Ken Grome Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] How does waitforfile actually work? (Kenneth Grome 2009)
> > Third problem: WebDNA fails to delete the undesirable > > newly recreated empty cart file via the following > > deletefile tag even though its permissions are 777. > > Why does it fail to delete this file and how can I make > > it delete this file? > > > > [deletefile ../CartFiles/[cart]] > > Though I don't know if it will solve your problem, that > is not the syntax I use for deletefile. Try: > [deletefile file=xxx] (such as in the docs) Mine and yours both work when I test the movefile and delete tags on a page that does not have an orderfile context above those tags. In other words, apparently the orderfile context is not closing the file before the movefile and delete tags are invoked, and that's probably why they don't work properly in this situation. This brings up a question: Have you looked at the waitforfile code and if so, does it wait for the designated file to be closed by WebDNA or another application before proceeding? Or does it simply look to see if the file exists before proceeding? Sincerely, Ken Grome Kenneth Grome

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:

WC1.6 to WC2 date formatting (1997) Has this happened to you? (was:Emailer Chokes on bad address) (1997) In Digest Dijon (2000) wrong input values? (1997) WebCatb15 Mac CGI -- [purchase] (1997) WARNING: MacOS The installer is broken... (2000) [searchString] (1997) New NT beta available (1997) Using [Include] Context (1999) ErrorMessages.db suggestion (1997) Install Webcatalog under NT4.0 and Microsoft IIS 2.0 (1997) # fields limited? (1997) Uploading under Windows (2001) [OT] Mom's gift (2006) Eims vs WebDNA (2003) AOL Sux and Other Thoughts (2000) OT: NT mac sharing (1998) Cant get my own subtotal (2001) 5.0 Preview Promotion Extension (2003) Sku numbers (1997)