Re: [WebDNA] Bug? [fileinfo..] You decide

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112645
interpreted = N
texte = 228 Howdy Brian, for some reason I actually forgot about isFile :-/ That = makes it a no-brainer.=20 Also: > If you ignore trailing slashes, what would you expect for [FILEINFO = /][EXISTS][/FILEINFO]? Another good point. You have me sold. Cheers, Donovan On Mar 16, 2016, at 12:24 PM, Brian Fries wrote: > I vote =93not a bug.=94 >=20 > In your example, [EXISTS] should return =93T=94, but [ISFILE] will = return =93F=94. >=20 > If you ignore trailing slashes, what would you expect for [FILEINFO = /][EXISTS][/FILEINFO]? >=20 > The *nix command line treats =93/bin=94 the same as =93/bin/=93, = WebDNA should as well. >=20 > For this reason, I rarely use [EXISTS], since I almost always know = whether I=92m looking for a folder or a file. Though sometimes I use = both [EXISTS] and [ISFILE] to make sure I don=92t overwrite a folder = with a file. >=20 >> On Mar 16, 2016, at 10:08 AM, Donovan Brooke wrote: >>=20 >> Hello, >>=20 >> [FileInfo file=3D./[path]/images/[t_filename]][Exists][/FileInfo] >>=20 >> Expected results: >> if [t_filename] equals blank, then result expected is F >>=20 >> However, since the directory =91images=92 in >> ./[path]/images/ >> exists, the result currently is T >>=20 >> I believe that rather if there is a trailing =91/=91 character in the = path, file info EXISTS should return F=85 *always*. >>=20 >> discuss. :-) >>=20 >> Donovan >>=20 >>=20 >>=20 >>=20 >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Bug? [fileinfo..] You decide (Donovan Brooke 2016)
  2. Re: [WebDNA] Bug? [fileinfo..] You decide ("Matthew A Perosi, Psi Prime" 2016)
  3. Re: [WebDNA] Bug? [fileinfo..] You decide (Brian Fries 2016)
  4. [WebDNA] Bug? [fileinfo..] You decide (Donovan Brooke 2016)
228 Howdy Brian, for some reason I actually forgot about isFile :-/ That = makes it a no-brainer.=20 Also: > If you ignore trailing slashes, what would you expect for [FILEINFO = /][EXISTS][/FILEINFO]? Another good point. You have me sold. Cheers, Donovan On Mar 16, 2016, at 12:24 PM, Brian Fries wrote: > I vote =93not a bug.=94 >=20 > In your example, [EXISTS] should return =93T=94, but [ISFILE] will = return =93F=94. >=20 > If you ignore trailing slashes, what would you expect for [FILEINFO = /][EXISTS][/FILEINFO]? >=20 > The *nix command line treats =93/bin=94 the same as =93/bin/=93, = WebDNA should as well. >=20 > For this reason, I rarely use [EXISTS], since I almost always know = whether I=92m looking for a folder or a file. Though sometimes I use = both [EXISTS] and [ISFILE] to make sure I don=92t overwrite a folder = with a file. >=20 >> On Mar 16, 2016, at 10:08 AM, Donovan Brooke wrote: >>=20 >> Hello, >>=20 >> [FileInfo file=3D./[path]/images/[t_filename]][Exists][/FileInfo] >>=20 >> Expected results: >> if [t_filename] equals blank, then result expected is F >>=20 >> However, since the directory =91images=92 in >> ./[path]/images/ >> exists, the result currently is T >>=20 >> I believe that rather if there is a trailing =91/=91 character in the = path, file info EXISTS should return F=85 *always*. >>=20 >> discuss. :-) >>=20 >> Donovan >>=20 >>=20 >>=20 >>=20 >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . 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:

Client-side Image Maps and WebCat? (1998) Re:Random Command (1997) UPPERCASE (1997) Web DNA... (2007) [orderfile] on Win2K Server (2003) hidden databases (2000) Emailer (1998) BBEdit WedDNA Codeless Language Module (2004) WebCatalog Technical Reference (1997) Newbie Help (2003) can WC render sites out? (1997) Document Contains no data, or showcart error. (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Shipcost lookup? (1997) WebDNA Quick Reference (Reserved Words) (2000) Virtual Domains (1998) Help! WebCat2 bug (1997) Searching multiple Databases (1997) The EMailer and the Blank menu bar? (1999) WebCat2 several catalogs? (1997)