mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

cmdline_tools/

ls.pro


Equivalent to UNIX ls command.

Examples

Try:

IDL> ls, /long -rw-r--r-- 1K Mar 23 14:25 COPYING -rw-r--r-- 298B May 14 14:07 Makefile drwxr-xr-x 1K May 14 14:13 api-docs/ -rw-r--r-- 259B Apr 27 15:16 mg_build_dist_tools_docs.pro drwxr-xr-x 748B May 14 14:09 src/ drwxr-xr-x 476B Apr 22 16:42 unittests/

Routines

top ls

ls [, pattern] [, /all] [, /long]

Substitute for UNIX ls command. Automatically uses -hF options.

Parameters

pattern in optional type=string default=*

pattern to match filenames against

Keywords

all in optional type=boolean

report all files (even hidden files like .*)

long in optional type=boolean

more information about each file is listed

Other attributes

Bugs:

doesn't handle directories matching pattern the same as ls does; IDL does not have a mechanism to get the owner for a file, so it is not displayed in the /LONG format

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 115
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.