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

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112641
interpreted = N
texte = 224 This is a multi-part message in MIME format. --------------070807040107070001090004 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable I also vote "not a bug." In addition to how *nix treats is, most of the websites I frequent (and=20 I just double checked this) will take this www.domain.com/blog and turn it into this: www.domain.com/blog/ as the page loads. Also, as already stated, we have the [isfile] that is built in for the=20 preferred, or alternative testing. -Matt On 3/16/2016 1:24 PM, Brian Fries wrote: > I vote =93not a bug.=94 > > In your example, [EXISTS] should return =93T=94, but [ISFILE] will retu= rn =93F=94. > > If you ignore trailing slashes, what would you expect for [FILEINFO=20 > /][EXISTS][/FILEINFO]? > > The *nix command line treats =93/bin=94 the same as =93/bin/=93, WebDNA= should=20 > as well. > > For this reason, I rarely use [EXISTS], since I almost always know=20 > whether I=92m looking for a folder or a file. Though sometimes I use=20 > both [EXISTS] and [ISFILE] to make sure I don=92t overwrite a folder=20 > with a file. > >> On Mar 16, 2016, at 10:08 AM, Donovan Brooke > > wrote: >> >> Hello, >> >> [FileInfo file=3D./[path]/images/[t_filename]][Exists][/FileInfo] >> >> Expected results: >> if [t_filename] equals blank, then result expected is F >> >> However, since the directory =91images=92 in >> ./[path]/images/ >> exists, the result currently is T >> >> I believe that rather if there is a trailing =91/=91 character in the=20 >> path, file info EXISTS should return F=85 *always*. >> >> discuss. :-) >> >> Donovan >> >> >> >> >> >> --------------------------------------------------------- >> 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=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us > --=20 > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst & Educator > matt@psiprime.com > > Psi Prime > 323 Union Blvd. > Totowa, NJ 07512 > > Direct: 888.872.0274 > Fax: 888.488.5924 > > http://www.perosi.com --------------070807040107070001090004 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I also vote "not a bug."

In addition to how *nix treats is, most of the websites I frequent (and I just double checked this) will take this
www.domain.com/blog
and turn it into this:
www.domain.com/blog/
as the page loads.

Also, as already stated, we have the [isfile] that is built in for the preferred, or alternative testing.

-Matt

On 3/16/2016 1:24 PM, Brian Fries wrote:
I vote =93not a bug.=94

In your example, [EXISTS] should return =93T=94, bu= t [ISFILE] will return =93F=94.

If you ignore trailing slashes, what would you expect for [FILEINFO /][EXISTS][/FILEINFO]?

The *nix command line treats =93/bin=94 the same as =93/bin/=93, WebDNA should as well.

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.

On Mar 16, 2016, at 10:08 AM, Donovan Brooke <dbrooke@euca.u= s> wrote:

Hello,

[FileInfo file=3D./[path]/images/[t_filename]][Exists][/FileInfo]
Expected results:
if [t_filename] equals blank, then result expected is F
However, since the directory =91images=92 in
./[path]/images/
exists, the result currently is T

I believe that rather if there is a trailing =91/=91 character in the path, file info EXISTS should return F=85 *always*.

discuss. :-)

Donovan





---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.u= s>. To unsubscribe, E-mail to: <talk-le= ave@webdna.us> archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@we= bdna.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.u= s Bug Reporting: support@webdna.us
--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatorm=att@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct:  888.872.0274Fax:     888.488.5924http://=www.perosi.com
--------------------------------------------------------- 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 --------------070807040107070001090004-- . 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)
224 This is a multi-part message in MIME format. --------------070807040107070001090004 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable I also vote "not a bug." In addition to how *nix treats is, most of the websites I frequent (and=20 I just double checked this) will take this www.domain.com/blog and turn it into this: www.domain.com/blog/ as the page loads. Also, as already stated, we have the [isfile] that is built in for the=20 preferred, or alternative testing. -Matt On 3/16/2016 1:24 PM, Brian Fries wrote: > I vote =93not a bug.=94 > > In your example, [EXISTS] should return =93T=94, but [ISFILE] will retu= rn =93F=94. > > If you ignore trailing slashes, what would you expect for [FILEINFO=20 > /][EXISTS][/FILEINFO]? > > The *nix command line treats =93/bin=94 the same as =93/bin/=93, WebDNA= should=20 > as well. > > For this reason, I rarely use [EXISTS], since I almost always know=20 > whether I=92m looking for a folder or a file. Though sometimes I use=20 > both [EXISTS] and [ISFILE] to make sure I don=92t overwrite a folder=20 > with a file. > >> On Mar 16, 2016, at 10:08 AM, Donovan Brooke > > wrote: >> >> Hello, >> >> [FileInfo file=3D./[path]/images/[t_filename]][Exists][/FileInfo] >> >> Expected results: >> if [t_filename] equals blank, then result expected is F >> >> However, since the directory =91images=92 in >> ./[path]/images/ >> exists, the result currently is T >> >> I believe that rather if there is a trailing =91/=91 character in the=20 >> path, file info EXISTS should return F=85 *always*. >> >> discuss. :-) >> >> Donovan >> >> >> >> >> >> --------------------------------------------------------- >> 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=20 > is sent to you because you are subscribed to the mailing list . To=20 > unsubscribe, E-mail to: archives:=20 > http://mail.webdna.us/list/talk@webdna.us Bug Reporting:=20 > support@webdna.us > --=20 > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst & Educator > matt@psiprime.com > > Psi Prime > 323 Union Blvd. > Totowa, NJ 07512 > > Direct: 888.872.0274 > Fax: 888.488.5924 > > http://www.perosi.com --------------070807040107070001090004 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I also vote "not a bug."

In addition to how *nix treats is, most of the websites I frequent (and I just double checked this) will take this
www.domain.com/blog
and turn it into this:
www.domain.com/blog/
as the page loads.

Also, as already stated, we have the [isfile] that is built in for the preferred, or alternative testing.

-Matt

On 3/16/2016 1:24 PM, Brian Fries wrote:
I vote =93not a bug.=94

In your example, [EXISTS] should return =93T=94, bu= t [ISFILE] will return =93F=94.

If you ignore trailing slashes, what would you expect for [FILEINFO /][EXISTS][/FILEINFO]?

The *nix command line treats =93/bin=94 the same as =93/bin/=93, WebDNA should as well.

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.

On Mar 16, 2016, at 10:08 AM, Donovan Brooke <dbrooke@euca.u= s> wrote:

Hello,

[FileInfo file=3D./[path]/images/[t_filename]][Exists][/FileInfo]
Expected results:
if [t_filename] equals blank, then result expected is F
However, since the directory =91images=92 in
./[path]/images/
exists, the result currently is T

I believe that rather if there is a trailing =91/=91 character in the path, file info EXISTS should return F=85 *always*.

discuss. :-)

Donovan





---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.u= s>. To unsubscribe, E-mail to: <talk-le= ave@webdna.us> archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@we= bdna.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.u= s Bug Reporting: support@webdna.us
--=20Matthew A PerosiCorporate ConsultantMobile Marketing ExpertSenior Web DeveloperSEO Analyst & Educatorm=att@psiprime.comPsi Prime323 Union Blvd.Totowa, NJ 07512Direct:  888.872.0274Fax:     888.488.5924http://=www.perosi.com
--------------------------------------------------------- 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 --------------070807040107070001090004-- . "Matthew A Perosi, Psi Prime"

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:

need to add a sku field to an existing db (2005) [ShowNext] (1997) summ=T (2003) Adding insurance to an order, round 2 (2003) Show shoppingcart after remove last item (1997) FORMS!! (2001) OT: About.com/Sprinks click-through fraud (2001) WC 2.0 frames feature (1997) process SSI (1998) Formulas.db + Users.db (1997) [OT] html background att (2003) [WebDNA] Upper ASCII and charset [OT] (2016) Multiple servers and Webcat (1998) text size limitation (1997) Passing info in [Addlineitem] (1997) Any 4.5 to 5.0 upgrade gotchas? (2003) Pithy questions on webcommerce & siteedit (1997) redirect from the errorsMessages.db entry (1997) What is WebDNA (1997) WebCatalog/WebMerchant 2.1 (1998)