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:

using showpage and showcart commands (1996) Grepping to remove text & code (2004) Searching multiple Databases (1997) WebMerchant 1.6 and https (1997) searches with dash, period etc. (2000) NT License trade for Mac (2000) WC2.0 Memory Requirements (1997) WebCat B13 Mac CGI -- Frames question (1997) Searching multiple fields (1997) Protecting webdelivery (1997) Still More on EudoraPro Email (1998) WebDelivery downloads alias, not original ? (1997) WCf2 and nested tags (1997) lookups (2000) Quit revisited (1997) Re:[input] context - solved - Thanks! (1999) Date format question (1998) Using Plug-In while running 1.6.1 (1997) SendTo more emails (1998) Secure server question (1997)