Page 1 of 1

[Solved] SC exists() not <xypath> relative anymore

Posted: 19 Apr 2019 10:56
by FluxTorpedoe
Hi,

It seems exists() was updated a few months ago, and its (theory of) relativity was broken… ;)

So even this example from the manual doesn’t work anymore (outputs 0):
echo exists("XYplorer.exe");

I probably missed discussions about this, but I guess it’s not intended.

Have a nice day,

    Flux

Re: SC exists() not <xypath> relative anymore

Posted: 19 Apr 2019 17:35
by bdeshi
It was done as part of a drive to bring consistency in path parsing of various scripting commands. Here's the discussion: viewtopic.php?f=5&t=19998
My view is that the current path should be taken as base path in scripts; the software being a file manager, the current location should always be the default scope of all operations.

Re: SC exists() not <xypath> relative anymore

Posted: 20 Apr 2019 18:28
by FluxTorpedoe
SammaySarkar wrote: 19 Apr 2019 17:35My view is that the current path should be taken as base path in scripts
Well, that seems sound and logical! I’d definitely second that.
Besides, for scripts where the old behavior is needed, it’s not much work to prefix relative paths with <xypath>.

So I guess my post doesn’t really belong in the "Bug Reports" section anymore (it’s more about updating the manual).

Thanks for the info. 8)

Re: SC exists() not <xypath> relative anymore

Posted: 02 May 2019 17:20
by admin
I'll update the Help... :ninja:

Re: SC exists() not <xypath> relative anymore

Posted: 05 May 2019 17:46
by FluxTorpedoe
Hi’

Since everyone is on the same page —and it’s neither a bug nor a regression per se—, I marked the thread as [Solved].

Have a nice day,   :)

    Flux