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
