Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: catalog.show - Function Up: catalog - Tool Previous: catalog.whatisfull - Function


catalog.list - Function



Package utility
Module catalog
Tool catalog


return contents of directories


Synopsis
list(files, listtypes, strippath)


Description
A vector of strings is returned containing the names of the files in the given directory and matching the types. The possible types can be seen with the function availabletypes. The given path names can contain wildcards in the base name. Optionally the full path is returned. The default is that the full path is returned if the files argument contains more than 1 name.

The resulting vector is made unique, so possible duplicate names are removed.



Arguments

files in Path name(s) to be processed
    Allowed: Vector of strings
    Default: '.'
listtypes in Types to be listed
    Allowed: Vector of strings
    Default: 'All'
strippath in Strip directory from resulting names
    Allowed: Bool
    Default: unset


Returns
Vector of strings


Example
  include "catalog.g";
  dc.list("*.g c*")
# catalog.g catalog_meta.g catalog.help synclistboces.g





next up previous contents index
Next: catalog.show - Function Up: catalog - Tool Previous: catalog.whatisfull - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15