I like using dirtree.
For example, try:
require'dir'
{."1 dirtree 'd:\temp\test'
Thanks,
--
Raul
On Sun, May 4, 2014 at 12:30 AM, greg heil <[email protected]> wrote:
> Dan
>
>>Thanks for answering. i did do a set working directory first. But i made a
>>full pathname (after setting the directory)
>
> 1!:44 showd=:temp=:'d:\temp'
>
> and i still got an interface error with
>
> 1!:55 (<temp,'\','test' dirfind '')
>
> however i seem to have generally screwed up my interface to the file
> system as i can not only not erase, but i cannot read!
>
> 1!:1 (<temp,'\','test' dirfind '')
>
> also gets an 'interface error'!-(
>
> BTW dirfind is a J standard utility:
>
> 'test' dirfind ''
> test.txt
>
> greg
> ~krsnadas.org
>
> --
>
> from: Dan Bron <[email protected]>
> to: [email protected]
> date: 3 May 2014 20:48
> subject: Re: [Jgeneral] 1!:55 on W7/64
>
>>Without investigating this directly, my suspicion is your 'dirfind' utility
>>returns files matching the name pattern anywhere in the nominated directory,
>>including recursively nested subdirectories. However, it looks as if its
>>output does not include directory information (i.e. the absolute path of the
>>file).
>
>>I'm also guessing that when you pass an unqualified filename to 1!:55, as in
>>'test.txt' with no directory information, it attempts to delete that file
>>from J's working directory (typically J's install directory or its bin
>>subdirectory).
>
>>So unless the file test.txt is in J's working directory, when you ask 1!:55
>>to delete it, it can't find the file you're talking about, and consequently
>>complains. To fix the issue, you'll have to provide 1!:55 with a
>>fully-qualified filename, including absolute path.
>
> Or I could be completely off base :)
>
> -Dan
>
> --
>
> from: greg heil <[email protected]>
> to: General forum <[email protected]>
> date: 3 May 2014 20:27
> subject: 1!:55 on W7/64
>
> 1!:55 seems to fail on my W7/64 machine in J801.
> Perhaps it is a permission problem.
> If so how do i elevate J`s permissions?
> eg
>
> 1!:55 <'test' dirfind ''
> |interface error
> | 1!:55<'test'dirfind''
>
> though
>
> 'test' dirfind ''
> test.txt
>
> before and after
>
> greg
> ~krsnadas.org
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm