[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:

[BULK] [WebDNA] New Webdna framework ! ... (addresses some initial concerns... coming into the design of a large project) (2012) Some ThankYou page problems (1997) WebMerchant when CC network is down (1998) [OT] Mac Browser Performance Tips (1999) Some Questions (1997) Re:2nd WebCatalog2 Feature Request (1996) Trigger date/month/year setting question (2002) FYI: virus alert (1996) [cart] not being interpreted inside [founditems] (1997) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) HTML Editors (1997) vs (1997) WebCat for Unix?? (1997) Rollovers (1999) Signal Raised (1997) Erotic Sites (1997) 'does not contain' operator needed ... (1997) how to check for no value while using [URL] to prevent cr (1999) Include a big block of text (1997) Merging databases (1997)