Creating folders and deleting files

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 10959
interpreted = N
texte = [WRITEFILE] works like a charm, making us able to render lots of static pages out of our .dbs. But I miss two functions: creating folders and deleting files.I know I can do this with embedded Applescripts, but it would be much smoother if we could make a [WRITEFILE] and include a year, month and a day field and have WebCat to create a folder if it is not present, like:[WriteFile /news/[year]/[month]/[day]/[newsID].html]I would also like to be able to delete rendered pages if their corresponding item in the news.db is deleted, a new [DELETEFILE] command. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Creating folders and deleting files (Christer Olsson 1997)
[writefile] works like a charm, making us able to render lots of static pages out of our .dbs. But I miss two functions: creating folders and deleting files.I know I can do this with embedded Applescripts, but it would be much smoother if we could make a [writefile] and include a year, month and a day field and have WebCat to create a folder if it is not present, like:[WriteFile /news/[year]/[month]/[day]/[newsID].html]I would also like to be able to delete rendered pages if their corresponding item in the news.db is deleted, a new [deletefile] command. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Christer Olsson

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:

converting dates in database (1998) RAM variables (1997) separate by mont (search) (2002) [SHOWNEXT] Examples (1997) View order not right (1997) Thanks and Big News!!! (1997) Too Much Rootbeer Free Offer (1997) Permission denied for append context (2004) local IIS setup (2004) For those of you not on the WebCatalog Beta... (1997) WebCat2.0 acgi vs plugin (1997) Separate SSL Server (1997) Size issues (2001) Text data with spaces in them... (1997) process SSI (1998) Forbidden CGI Error (1997) Need relative path explanation (1997) French characters in variables (2001) PIXO support (1997) Calculating multiple shipping... (1997)