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.type - Function Up: catalog - Tool Previous: catalog.execute - Function


catalog.canonicalize - Function



Package utility
Module catalog
Tool catalog


Return a file name in canonical form


Synopsis
canonicalize(file)


Description
It returns the name in canonical form by removing possible . and .. parts in the string and by adding the working directory if a relative name is given.
If an illegal file name is given, a . is returned as file name.



Arguments

file in Name of file to be canonicalized
    Allowed: Any string
    Default: '.'


Returns
String


Example
  include "catalog.g";
  dc.canonicalize("3C273XC1.MS/..")
# /aips++2/gvandiep/data





next up previous contents index
Next: catalog.type - Function Up: catalog - Tool Previous: catalog.execute - 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