Oh, thanks for pointing this out.

Вт, 03 мар 2015, Ric Tikkanz написал(а):
> Bill, in general/dirutils there is a verb pathcreate that creates
> intermediate directories. It uses dircreate to create the individual
> directories.
> 
> On Mon, Mar 2, 2015 at 6:31 PM, bill lam <[email protected]> wrote:
> 
> > I see, the general/dirutils is not loaded by default. BTW, the
> > dircreate is limited in that it fails to create intermediate
> > directories. While the verb md in profile.ijs can work like mkdir -p.
> >
> > On Mon, Mar 2, 2015 at 1:17 PM, chris burke <[email protected]> wrote:
> > > Sorry, it is a bug in a base library function called by the addon. I'll
> > get
> > > this fixed.
> > >
> > > On 1 March 2015 at 21:01, chris burke <[email protected]> wrote:
> > >
> > >> This is a bug in the dirutils addon. I will fix it.
> > >>
> > >> In J8, the path separator is / and utilities should convert to this.
> > >>
> > >> On 1 March 2015 at 20:59, bill lam <[email protected]> wrote:
> > >>
> > >>> I checked neither dircreate nor direxist are present in J803.  Perhaps
> > >>> you can update them by yourself.
> > >>>
> > >>> On Mon, Mar 2, 2015 at 12:27 PM, June Kim (김창준) <[email protected]>
> > >>> wrote:
> > >>> > Hello
> > >>> >
> > >>> > Please look at the following:
> > >>> >
> > >>> >    JVERSION
> > >>> >
> > >>> > Engine: j803/2014-10-19-11:11:11
> > >>> >
> > >>> > Library: 8.03.10
> > >>> >
> > >>> > Qt IDE: 1.3.1/5.3.2
> > >>> >
> > >>> > Platform: Win 64
> > >>> >
> > >>> > Installer: J803 install
> > >>> >
> > >>> > InstallPath: c:/users/user/j64-803
> > >>> >
> > >>> >    dircreate <'e:\abcdegg\'
> > >>> >
> > >>> > 1
> > >>> >
> > >>> >    dircreate <'e:\abcdegg\'
> > >>> >
> > >>> > |interface error: dircreate_rgsdirutils_
> > >>> >
> > >>> > | res=. 1!:5 msk#y
> > >>> >
> > >>> >    dircreate <'e:\abcdegggg'
> > >>> >
> > >>> > 1
> > >>> >
> > >>> >    dircreate <'e:\abcdegggg'
> > >>> >
> > >>> > 0
> > >>> >
> > >>> >    direxist 'e:\abcdegggg'
> > >>> >
> > >>> > 1
> > >>> >
> > >>> >    direxist 'e:\abcdegggg\'
> > >>> >
> > >>> > 0
> > >>> >
> > >>> >
> > >>> >
> > >>> > I expected that the result should be same whether or not there was a
> > >>> > trailing path separator. The behavior seems to have been changed
> > after
> > >>> J6.
> > >>> >
> > >>> >
> > >>> > In J6, there was PATHSEP_j_=: '/\'{~6=9!:12'' and I could depend on
> > >>> using
> > >>> > PATHSEP so that the script is platform independent.
> > >>> >
> > >>> >
> > >>> > If you look into the definition of dircreate, which leads to direxist
> > >>> and
> > >>> > then ftype, there is a hardcoded path separator literal string as
> > '/'.
> > >>> >
> > >>> >
> > >>> > 3 : 0
> > >>> >
> > >>> > d=. (}: ^: ('/'={:)) ucp y
> > >>> >
> > >>> > d=. 1!:0 fboxname d
> > >>> >
> > >>> > if. #d do.
> > >>> >
> > >>> >   >: 'd' = 4 { > 4 { ,d
> > >>> >
> > >>> > else.
> > >>> >
> > >>> >   0
> > >>> >
> > >>> > end.
> > >>> >
> > >>> > )
> > >>> >
> > >>> > Shouldn't it be something else that changes depending on the
> > platform?
> > >>> Or,
> > >>> > the supposed way of handling path separator has changed after J6? (it
> > >>> seems
> > >>> > like jpathsep is used to normalized all path separators into '/')
> > >>> >
> > ----------------------------------------------------------------------
> > >>> > For information about J forums see
> > http://www.jsoftware.com/forums.htm
> > >>> ----------------------------------------------------------------------
> > >>> For information about J forums see http://www.jsoftware.com/forums.htm
> > >>>
> > >>
> > >>
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

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

Reply via email to