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

This WebDNA talk-list message is from

2016


It keeps the original formatting.
numero = 112640
interpreted = N
texte = 223 --Apple-Mail=_66D14D34-DBCB-4F98-BE33-1CD285564B87 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I vote =93not a bug.=94 In your example, [EXISTS] should return =93T=94, but [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 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 --Apple-Mail=_66D14D34-DBCB-4F98-BE33-1CD285564B87 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
I vote =93not a bug.=94

In your example, = [EXISTS] should return =93T=94, but [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.us> 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.us>.
To unsubscribe, E-mail = to: <talk-leave@webdna.us>
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 --Apple-Mail=_66D14D34-DBCB-4F98-BE33-1CD285564B87-- . 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)
223 --Apple-Mail=_66D14D34-DBCB-4F98-BE33-1CD285564B87 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 I vote =93not a bug.=94 In your example, [EXISTS] should return =93T=94, but [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 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 --Apple-Mail=_66D14D34-DBCB-4F98-BE33-1CD285564B87 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
I vote =93not a bug.=94

In your example, = [EXISTS] should return =93T=94, but [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.us> 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.us>.
To unsubscribe, E-mail = to: <talk-leave@webdna.us>
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 --Apple-Mail=_66D14D34-DBCB-4F98-BE33-1CD285564B87-- . Brian Fries

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:

RequiredFields template (1997) HELP WITH DATES (1997) file browser. (2002) [WebDNA] shopping sites and the "old commerce tags" (2012) problems with 2 tags shakur (1997) How to add product size choices to form? (1997) Problems reading files created by WC (1997) [date] for today's date, while inside old order file (1998) price formula (1999) Location of Webcat site in folder hierarchy (1997) [Reload mydata.db] (1998) WARNING: deletedb anomaly (2002) WebCat2b15MacPlugin - [protect] (1997) Limiting user access to .tmpl files (1997) Multiple SSL Keys (1998) Buying sans cart (1997) calculate age (2003) The IBC root beer has arrived! (1997) % (mod) was looping table rows (1999) Postprocessing CCs (2000)