[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Accessing information returned from 'dir'
From: |
Etienne Grossmann |
Subject: |
Re: Accessing information returned from 'dir' |
Date: |
Wed, 6 Oct 2004 09:29:36 -0400 |
User-agent: |
Mutt/1.4.2.1i |
Hi All,
problem confirmed w/ 2.1.57, Debian GNU/Linux.
Workaround :
octave:77> {a.name}{2}
ans = ..
octave:78> typeinfo({a.name}{2})
ans = string
Hth,
Etienne
On Wed, Oct 06, 2004 at 02:20:05PM +0200, address@hidden wrote:
# 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
# -------------------------------------------------------------
#
--
Etienne Grossmann ------ http://www.cs.uky.edu/~etienne
-------------------------------------------------------------
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, 2004/10/06
- Re: Accessing information returned from 'dir',
Etienne Grossmann <=
- 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