[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Accessing information returned from 'dir'
From: |
mddejong |
Subject: |
Accessing information returned from 'dir' |
Date: |
Wed, 6 Oct 2004 14:20:05 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.2 [CVS] |
How does one access the information returned from a dir-command? After
issuing
a=dir("./");
I can do
a.name
or
a.bytes
but any attempt to retrieve the information *within* a.name failed.
a.name[1] returns a syntax error, a.name(1) or a.name{1} return 'can't
perform indexing operations for cs-list type', nth(a.name, 1) returns the
help text of nth().
I know I can circumvent the problem by using readdir() and then lstat()ing
the names myself, but I figured there has to be a way to Do What I Want
:-). Can someone please help me out?
Kind regards,
Maarten
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Accessing information returned from 'dir',
mddejong <=
- Re: Accessing information returned from 'dir', Etienne Grossmann, 2004/10/06
- Re: Accessing information returned from 'dir', Geraint Paul Bevan, 2004/10/06
- Re: Accessing information returned from 'dir', mddejong, 2004/10/06
- Re: Accessing information returned from 'dir', Etienne Grossmann, 2004/10/06
- Re: Accessing information returned from 'dir', Etienne Grossmann, 2004/10/06
- Re: Accessing information returned from 'dir', John W. Eaton, 2004/10/06
- Re: Accessing information returned from 'dir', mddejong, 2004/10/06
- Re: Accessing information returned from 'dir', John W. Eaton, 2004/10/07