Re: [WebDNA] Two file tags don't work as expected

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102706
interpreted = N
texte = Kenneth Grome wrote: > ... but instead of leaving the permissions set to 777 on the > moved file, WebDNA changes the moved file's permissions to > 664. Why does it do this? I don't know that the generic WebDNA movefile is that sophisticated since it is cross platform.. but I haven't personally looked at the source for that tag yet. You have options. You could use shell and 'mv' instead to make your move. Or, Just do: [waitforfile file=yournewfile][/waitforfile] [shell]/chmod 777 ./[/shell] after your movefile to set the perms. However, I must say that I don't know of too many times where files marked at 777 is a good thing. ;-) > -------------------- > > Second problem: When WebDNA moves the above cart file, it > also (and this is really bizarre) *recreates* an empty cart > file with the same name in the same location as the original. > Why does it do this and how can I prevent it? Not sure, but I'm guessing it's coding technique. Blank files can be created if you are trying to use that file before it is all there. They can probably be created for other reasons as well. Maybe employ waitforfile..?? > -------------------- > > 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) If that doesn't work, I'm guessing it's a permissions based issue. > Any help with the resolution of these three unexpected > issues is greatly appreciated, thanks. > > > Sincerely, > Ken Grome HTH, Donovan -- Donovan Brooke WebDNA Software Corporation http://www.webdna.us **[Square Bracket Utopia]** Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Two file tags don't work as expected (Donovan Brooke 2009)
  2. Re: [WebDNA] Two file tags don't work as expected (Kenneth Grome 2009)
  3. Re: [WebDNA] Two file tags don't work as expected (Donovan Brooke 2009)
  4. [WebDNA] Two file tags don't work as expected (Kenneth Grome 2009)
Kenneth Grome wrote: > ... but instead of leaving the permissions set to 777 on the > moved file, WebDNA changes the moved file's permissions to > 664. Why does it do this? I don't know that the generic WebDNA movefile is that sophisticated since it is cross platform.. but I haven't personally looked at the source for that tag yet. You have options. You could use shell and 'mv' instead to make your move. Or, Just do: [waitforfile file=yournewfile][/waitforfile] [shell]/chmod 777 ./[/shell] after your movefile to set the perms. However, I must say that I don't know of too many times where files marked at 777 is a good thing. ;-) > -------------------- > > Second problem: When WebDNA moves the above cart file, it > also (and this is really bizarre) *recreates* an empty cart > file with the same name in the same location as the original. > Why does it do this and how can I prevent it? Not sure, but I'm guessing it's coding technique. Blank files can be created if you are trying to use that file before it is all there. They can probably be created for other reasons as well. Maybe employ waitforfile..?? > -------------------- > > 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) If that doesn't work, I'm guessing it's a permissions based issue. > Any help with the resolution of these three unexpected > issues is greatly appreciated, thanks. > > > Sincerely, > Ken Grome HTH, Donovan -- Donovan Brooke WebDNA Software Corporation http://www.webdna.us **[Square Bracket Utopia]** Donovan Brooke

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:

OLD ORDERS (1998) TemplateCacheSize preference (1998) Searching an Email database (1997) Old Style vs XML Syntax (2003) addlineitem is not saving a variable. (2004) WebCatalog and barcodes (2000) my price won't move (1997) Email within tmpl ? (1997) [WebDNA] Is a '.webdna' suffix better? (2008) WebCat b15 Mac plug-in (1997) can WC render sites out? (1997) WebCat2 - [format thousands] (1997) New Site Announcement (1998) WC2b15 File Corruption (1997) Sorting error (1997) ASP and WebDNA (1998) ReadDateFormat (1998) A question on sub-categories (1997) Separate SSL Server (1997) BGcolor (1997)