cmdline_tools/
ls.pro
Routines
result = ls_get_columns()
Get number of columns in display.
result = ls_permissions(files, info=info)
Returns the mode line for each file in the given list.
result = ls_human_size(sizes)
Return a human readable array of sizes using bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes (in powers of two).
result = ls_modification_times(mtimes)
Convert modification times from long to normal date/time format.
ls, pattern [, /all] [, /long]
Substitute for unix ls command.
Routine details
topls_permissions
result = ls_permissions(files, info=info)
Returns the mode line for each file in the given list.
Return value
strarr
Parameters
- files in required type=strarr
array of files
Keywords
- info
topls_human_size
result = ls_human_size(sizes)
Return a human readable array of sizes using bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes (in powers of two).
Return value
strarr
Parameters
- sizes in required type=intarr
array of sizes in bytes
topls_modification_times
result = ls_modification_times(mtimes)
Convert modification times from long to normal date/time format.
Return value
strarr
Parameters
- mtimes in required type=lonarr
array of modification times
topls
ls, pattern [, /all] [, /long]
Substitute for unix ls command. Automatically does -hF.
Parameters
- pattern
Keywords
- all in optional type=boolean
report all files (even .*)
- 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; shows year if it is not this year (ls shows year if it is not in the last six months)
File attributes
Modification date: | Wed Apr 22 23:29:00 2009 |
Lines: | 220 |
Docformat: | rst rst |