[WebDNA] listfiles problem

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106590
interpreted = N
texte = Hi I have a folder of images that are named in the format... random_names-XXX.jpg Where XXX is a serial number for a record in a database I don't know what the 'random_names' bit is but it doesn't contain anything other than letters an underscores. The filename always ends in hyphen serial number .jpg When I pull a record from the database I want to do a listfiles on the image folder and see if one of them ends in the serial number. Using... [listfiles path=images&name=-[serialno].jpg&exact=f] [/listfiles] ...works fine when I have a matching image but I get an error message if there is no matching image file like... An unknown error occurred: FileNotFound -30.jpg I've tried hiding the listfiles inside a showif with another listfiles but it doesn't work, the error still shows... [showif [listfiles path=images&name=-[serialno].jpg&exact=f][isfile][/listfiles]=T] [listfiles path=images&name=-[serialno].jpg&exact=f]  [/listfiles] [/showif] ...I'm on WebDNA 6.0a on Mac OS X Server 10.4.11 What am I doing wrong here? Shouldn't [listfiles] just show nothing is it doesn't find a match? Paul Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] listfiles problem (Govinda 2011)
  2. Re: [WebDNA] listfiles problem (Paul Willis 2011)
  3. Re: [WebDNA] listfiles problem (Brian Fries 2011)
  4. [WebDNA] listfiles problem (Paul Willis 2011)
Hi I have a folder of images that are named in the format... random_names-XXX.jpg Where XXX is a serial number for a record in a database I don't know what the 'random_names' bit is but it doesn't contain anything other than letters an underscores. The filename always ends in hyphen serial number .jpg When I pull a record from the database I want to do a listfiles on the image folder and see if one of them ends in the serial number. Using... [listfiles path=images&name=-[serialno].jpg&exact=f] [/listfiles] ...works fine when I have a matching image but I get an error message if there is no matching image file like... An unknown error occurred: FileNotFound -30.jpg I've tried hiding the listfiles inside a showif with another listfiles but it doesn't work, the error still shows... [showif [listfiles path=images&name=-[serialno].jpg&exact=f][isfile][/listfiles]=T] [listfiles path=images&name=-[serialno].jpg&exact=f]  [/listfiles] [/showif] ...I'm on WebDNA 6.0a on Mac OS X Server 10.4.11 What am I doing wrong here? Shouldn't [listfiles] just show nothing is it doesn't find a match? Paul Paul Willis

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:

Search/sort in URL Was: GuestBook example (1997) Formating found categories (1997) E-Mail (1998) multi-paragraph fields (1997) Email Spam a bit of Hell (2004) Emailer again & again (1997) includes and cart numbers (1997) WebCat2b12 CGI Mac -- Problems propagating the cart through (1997) Emailer... DOA but still twitching (2007) Reversed words (1997) EIMS Problems (1997) Secure Server not remembering discounts (1998) New WebCatalog Version !!! (1997) sorting and summarizing (1998) ImageMagick (2005) Fields/Forms Processing (1998) Banner DNA (1997) using showpage and showcart commands (1996) WebCatalog can't find database (1997) [DOS]/DOS query perhaps OT (2003)