Bill wrote:
> allowedpaths=: jhostpath each
'~bin\';'~system\';'~tools\';'~addons\';'~user\'
> allowedpaths=: jhostpath each '~bin\';'~system\';'~tools\';'~addons'
;'~user\'
Yep, the missing \ in '~addons' does seem like it would cause this
assertion:
> |assertion failure: copy
> | +./allowedpaths=<s,PATHSEP_j_
I think it would be good if all J system functions which expected a file or
directory string called some centralized code that normalized it, rather
than spreading that responsibility out to every piece of code that wants to
deal with files or directories.
In this case, PATHSEP_j_&(] , [ #~ (~:{:))L:0 or something like it would
suffice in place of the assertion.
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm