So would I, but I had never come across jwiki/Addons/general/dirutils
or if I had, it hadn't sunk in!

I can't quite put my finger on it with J, but there is something about
the way that labs, demos, libraries, utilities and "addons" are
organized that does not exactly make it easy to find programs that are
already written to do the thing you want to do.

What would be great is a "J in a Nutshell" book, like the "Tcl in
nutshell book"... of course, I am not volunteering to write it :-)).
[not that I could].


but I would have to know that "dirutils" is considered a "general" thing
2009/11/24 Sherlock, Ric <[email protected]>:
> My take on it is the verb pathcreate in the general/dirutils addon.
>
> http://www.jsoftware.com/jwiki/Addons/general/dirutils
>
> If there are better solutions I'd be keen to see them made generally 
> available.
>
>> From: Matthew Brand
>>
>> By the way, it is probably a good example of the kind of pickle a
>> non-expert user of J can get themselves into when trying to do simple
>> things. I bet that somebody here could write it in about 10
>> characters!
>>
>> 2009/11/24 Matthew Brand <[email protected]>:
>> > I have a function called createPathTree_utils_ which creates a whole
>> > path no matter how deep it is but does not complain if anything
>> > already exists along the way. It is probably not the best way to do
>> > it, but it works for me. I find it useful, but maybe there is already
>> > something like this somewhere in one of the many addons/libraries
>> > which I have not come across yet?
>> >
>> > example:
>> > createPathTree_utils_ '/tmp/dir1/dir2/'
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to