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


next up previous contents index
Next: os.mkdir - Function Up: os - Tool Previous: os.dir - Function


os.ls - Function



Package utility
Module misc
Tool os


directory listing


Synopsis
ls(dir)


Description
This function lists directories in a human-readable format, like the unix command ls. To retrieve a glish record containing files in a directory, use dos.dir() instead.



Arguments

dir in directory name
    Allowed: string
    Default: current directory


Example
- dos.ls()
aips++.inputsv2.table mymsgs                tkeep3.g              
aips++.records.table  tkeep.g                                     
junk_SP               tkeep2.g                                    
T 
- dos.ls('/')
aips++     dev        home       lost+found opt        sbin       users      
bin        etc        initrd     misc       proc       tftpboot   usr        
boot       export     lib        mnt        root       tmp        var        
T 
-



Returns
T or F




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