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:

More Applescript (1997) Storefront Case Studies (1998) [addlineitems] display (1997) oops private message leaked into talk list (1997) AppleScript Error (2001) WebCat2 - many [carts] on one template page? (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) Resume Catalog ? (1997) Summing a field full of numbers ... (1997) [url] with frames (2003) template not found error (1998) First postarg not taking in $Commands (1997) Re2: frames & carts (1997) Separate SSL Server (1997) [tcpconnect] doing nothing (2001) RE: Signal Raised (1997) Up and running ... at last !! (1997) OT: Need some feedback, please. (2003) more on quicktime test stuff (1997) Reversed words (1997)