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


next up previous contents index
Next: misc.thisdir - Function Up: misc - Tool Previous: misc.dir - Function


misc.parentdir - Function



Package utility
Module misc
Tool misc


Return the parent directory


Synopsis
parentdir(directoryname)


Description
This returns the name of the parent directory.



Arguments

directoryname   Directory name
    Allowed: String


Example
- dms.parentdir('/home/tarzan/tcornwel')
/home/tarzan 
- dms.parentdir('/home/tarzan/tcornwel/aips++')
/home/tarzan/tcornwel 
- dms.parentdir('.')          # If current directory is /home/tarzan/tcornwel
/home/tarzan





next up previous contents index
Next: misc.thisdir - Function Up: misc - Tool Previous: misc.dir - 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