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:

4.0.x find (2000) cart info (1998) About the Allow 'Absolute Path' Prefix (2002) [WebDNA] How to access WebDNA admin pages? (2010) FoundItems and punctuation (2000) Upgrade to web DNA6.0 (2004) Just Testing (1997) Can't Update records (1997) More questions about serial number dishing (1997) Sendmail and SMTP AUTH (2005) How to delete all files in a folder? (2001) Multiple Newcarts (1996) variables in [addlineitem] (1998) problems with WebCat-Plugin () Looking for a Manual (1997) Not really WebCat- (1997) [WebDNA] Is the AutoCommit preference still supported? (2010) WebCat2 - many [carts] on one template page? (1997) Delete Context - to remove record (1998) Still trying to email... (1998)