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.view - Function Up: catalog - Tool Previous: catalog.copy - Function


catalog.rename - Function



Package utility
Module catalog
Tool catalog


Rename


Synopsis
rename(file, newfile, confirm)


Description
Rename a file.

Note that if the new file name already exists confirmation is asked for if the confirm argument is 'yes' (for any file) or 'directory' (for a directory). By default the confirm argument is unset meaning that the default confirmation option (as returned by getconfirm()) is used.



Arguments

file in File to be renamed
    Allowed: String
newfile in New name of file
    Allowed: String
confirm in Confirmation?
    Allowed: yes, directory, no
    Default: unset


Returns
Bool


Example
  dc.rename("3C273.restored", "3C273new.restored");





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