On Wed, 25 Nov 2009, Sherlock Ric wrote:
> > From: Dan Bron
> > Here's my version, from
> > http://www.jsoftware.com/svn/DanBron/trunk/config/startup.yes.ijs  :
> > 
> > ...
> > NB.  DLL call to check if a path exists.  
> > NB.!! Won't work on Win95 or NT4 with IE3 or earlier.
> > NB.  I don't use 1!:0 because 1!:0 '\\host\share\' fails, 
> > NB.  even though 1!:0 '\\host\share\sub\' works
> > existing =.  >@:{.@:('shlwapi.dll PathFileExistsA i *c'&(15!:0))"0
> > ...
> 
> Interesting. I run into this before, but can confirm the behaviour.
> 
>   1!:0 \\host\share        NB. no directory listing
>   1!:0 \\host\share\       NB. no directory listing
>   1!:0 \\host\share\*      NB. provides a directory listing for share
>   1!:0 \\host\share\subdir NB. lists subdir
>   Cmd$> dir \\host\share   NB. provides a directory listing for share
> 
> I'm considering ways of altering direxist in the dirutils addon to workaround 
> this for now.
> 
> Perhaps this something that might get addressed in the next version of J?

I suppose this is windows peculiarity. further examples 
1!:0 'c:'
1!:0 'c:\'

(0~:#) 1!:0 'path/to/*' should be an idiom to test for directory.

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to