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:

WebCatalog [FoundItems] Problem - LONG - (1997) convertwords BUG (2002) Ampersand is breaking search context (1999) Triggers (2003) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Emailer problem with WC 2.1, NT, WebSite 2.1 (1998) emailer (1997) ISAPI WC6a and Windows 2003 Web Edition (2006) Weighting of grouped results possible? (was: grouping fieldsquestion) (1998) multi-paragraph fields (1997) Rotating Banners ... (was LinkExchange) (1997) Database Structuring (again) (2003) WebCatalog NT beta 18 problem (1997) multiple search commands (1997) [WebDNA] Strange MATH result - BUG (2010) Fun with dates (1997) Admin Section (2002) NT version (1997) Text limits in NT version? (1997) [LOOKUP] (1997)