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.rename - Function Up: catalog - Tool Previous: catalog.delete - Function


catalog.copy - Function



Package utility
Module catalog
Tool catalog


Copy


Synopsis
copy(file, newfile, confirm)


Description
Copy 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 copied
    Allowed: String
newfile in Name of new file
    Allowed: String
confirm in Confirmation?
    Allowed: yes, directory, no
    Default: unset


Returns
Bool


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





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